Example #1
0
 public function test_delete()
 {
     $this->assertTrue(isset($this->config['foo']));
     $this->config->delete('foo');
     $this->cache->checkVarUnset($this, 'foo');
     $this->assertFalse(isset($this->config['foo']));
     // re-read config and populate cache
     $cache2 = new phpbb_mock_cache();
     $config2 = new \phpbb\config\db($this->db, $cache2, 'phpbb_config');
     $cache2->checkVarUnset($this, 'foo');
     $this->assertFalse(isset($config2['foo']));
 }