Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | public function testIsLive() |
||
11 | { |
||
12 | Config::inst()->update('Director', 'environment_type', 'dev'); |
||
13 | |||
14 | $reporter = new DirectorEnvReporter(); |
||
15 | |||
16 | $this->assertEquals(false, $reporter->isLive()); |
||
17 | |||
18 | Config::inst()->update('Director', 'environment_type', 'test'); |
||
19 | |||
20 | $this->assertEquals(false, $reporter->isLive()); |
||
21 | |||
22 | Config::inst()->update('Director', 'environment_type', 'live'); |
||
23 | |||
24 | $this->assertEquals(true, $reporter->isLive()); |
||
25 | } |
||
26 | } |
||
27 |