| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | public function testDefaultValuesAreNotWrittenWhenDisabled() |
||
| 60 | { |
||
| 61 | SiteConfig::config()->set('enable_theme_color_picker', false); |
||
| 62 | |||
| 63 | $siteConfig = SiteConfig::create(); |
||
| 64 | $siteConfig->write(); |
||
| 65 | |||
| 66 | $this->assertEmpty($siteConfig->HeaderBackground, 'Color fields should not be written when disabled'); |
||
| 67 | } |
||
| 79 |