|
@@ 39-44 (lines=6) @@
|
| 36 |
|
/** |
| 37 |
|
* @dataProvider appListProvider |
| 38 |
|
*/ |
| 39 |
|
public function testGetAllApps($apps, $expected){ |
| 40 |
|
$encoded = json_encode($apps); |
| 41 |
|
$appManager = new AppManager($this->getOccRunnerMock($encoded)); |
| 42 |
|
$actual = $appManager->getShippedApps(); |
| 43 |
|
$this->assertEquals($expected, $actual); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @dataProvider appListProvider |
|
@@ 49-54 (lines=6) @@
|
| 46 |
|
/** |
| 47 |
|
* @dataProvider appListProvider |
| 48 |
|
*/ |
| 49 |
|
public function testGetShippedApps($apps, $expected){ |
| 50 |
|
$encoded = json_encode($apps); |
| 51 |
|
$appManager = new AppManager($this->getOccRunnerMock($encoded)); |
| 52 |
|
$actual = $appManager->getShippedApps(); |
| 53 |
|
$this->assertEquals($expected, $actual); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
public function testGetAppPath(){ |
| 57 |
|
$expected = '/dev/null'; |