-
- /**
- * Test the hasP() method
- */
- public function testHasP()
- {
- $configCache = new ConfigCache();
- $uid = 345;
-
- $this->assertFalse($configCache->hasP($uid, 'system', 'test'));
- $this->assertFalse($configCache->hasP($uid, 'system'));
-
- $configCache->setP($uid, 'system', 'test', 'it');
- $this->assertTrue($configCache->hasP($uid, 'system', 'test'));
- $this->assertTrue($configCache->hasP($uid, 'system'));
- }