Beispiel #1
0
 public function testSetEnabled()
 {
     $model = new State($this->config, $this->writer);
     $this->assertFalse($model->isEnabled('cache_type'));
     $model->setEnabled('cache_type', true);
     $this->assertTrue($model->isEnabled('cache_type'));
     $model->setEnabled('cache_type', false);
     $this->assertFalse($model->isEnabled('cache_type'));
 }