|
@@ 9-14 (lines=6) @@
|
| 6 |
|
|
| 7 |
|
class AppManagerTest extends \PHPUnit_Framework_TestCase { |
| 8 |
|
|
| 9 |
|
public function testDisableApp(){ |
| 10 |
|
$appId = 'anyapp'; |
| 11 |
|
$appManager = new AppManager($this->getOccRunnerMock('')); |
| 12 |
|
$result = $appManager->disableApp($appId); |
| 13 |
|
$this->assertTrue($result); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
public function testEnableApp(){ |
| 17 |
|
$appId = 'anyapp'; |
|
@@ 16-21 (lines=6) @@
|
| 13 |
|
$this->assertTrue($result); |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
public function testEnableApp(){ |
| 17 |
|
$appId = 'anyapp'; |
| 18 |
|
$appManager = new AppManager($this->getOccRunnerMock('')); |
| 19 |
|
$result = $appManager->enableApp($appId); |
| 20 |
|
$this->assertTrue($result); |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
public function appListProvider(){ |
| 24 |
|
return [ |