1 | <?php |
||
8 | class ModuleTest extends PHPUnit_Framework_TestCase |
||
9 | { |
||
10 | /** |
||
11 | * This test should verify if module configuration works out of the box |
||
12 | */ |
||
13 | public function testGetConfigReturnsValidConfig() |
||
14 | { |
||
15 | $module = new Module(); |
||
16 | $config = $module->getConfig(); |
||
17 | $this->assertInternalType('array', $config); |
||
18 | $this->assertArrayHasKey('zendesk', $config); |
||
19 | $this->assertArrayHasKey('subdomain', $config['zendesk']); |
||
20 | $this->assertArrayHasKey('username', $config['zendesk']); |
||
21 | $this->assertArrayHasKey('token', $config['zendesk']); |
||
22 | } |
||
23 | /** |
||
24 | * Scans service manager configuration, returning all services created by factories and invokables |
||
25 | * @return array |
||
26 | */ |
||
27 | public function provideServiceList() |
||
40 | |||
41 | /** |
||
42 | * @dataProvider provideServiceList |
||
43 | */ |
||
44 | public function testService($service) |
||
50 | } |
||
51 |