Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
PI-1200 Linted files
Browse files Browse the repository at this point in the history
  • Loading branch information
manatarms committed Jul 13, 2017
1 parent aab3b5b commit 17895bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Test/Cpanel/PluginActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public function testGetConfigMergesUserConfig()
'debug' => true,
];
$this->pluginActions->setUserConfig($userConfig);
$this->mockPluginAPI->method('createAPISuccessResponse')->will($this->returnCallback(function ($config) {return $config;}));
$this->mockPluginAPI->method('createAPISuccessResponse')->will($this->returnCallback(function ($config) {
return $config;
}));

$response = $this->pluginActions->getConfig();
$this->assertTrue($response['debug']);
Expand All @@ -84,10 +86,11 @@ public function testGetConfigIgnoresInvalidKeys()
'something' => true,
];
$this->pluginActions->setUserConfig($userConfig);
$this->mockPluginAPI->method('createAPISuccessResponse')->will($this->returnCallback(function ($config) {return $config;}));
$this->mockPluginAPI->method('createAPISuccessResponse')->will($this->returnCallback(function ($config) {
return $config;
}));

$response = $this->pluginActions->getConfig();
$this->assertArrayNotHasKey('something', $response);

}
}

0 comments on commit 17895bd

Please sign in to comment.