Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | class ConfigStoreTest extends SapphireTest |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @expectedException \Solarium\Exception\RuntimeException |
||
16 | */ |
||
17 | public function testFileConstruct() |
||
20 | } |
||
21 | |||
22 | public function testFileConstructGood() |
||
23 | { |
||
24 | $store = new FileConfigStore(['path' => 'test']); |
||
25 | $this->assertEquals(Director::baseFolder() . '/test/lol', $store->instanceDir('lol')); |
||
26 | |||
27 | $this->assertEquals(['path' => Director::baseFolder() . '/test'], $store->getConfig()); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @expectedException \Solarium\Exception\RuntimeException |
||
32 | */ |
||
33 | public function testPostConstruct() |
||
34 | { |
||
35 | new PostConfigStore([]); |
||
36 | } |
||
37 | |||
38 | public function testPostConstructGood() |
||
45 | } |
||
46 | |||
47 | public function testPostConstructNoPath() |
||
54 |