3 declare(strict_types=1);
32 $settings->setActivatedComponents([
'test']);
43 $this->assertTrue($cache->isActive());
44 $this->assertEquals(
'test', $cache->getComponent());
45 $this->assertEquals(0, $cache->getServiceType());
48 $this->assertFalse($cache->isActive());
49 $this->assertEquals(
'test_2', $cache->getComponent());
50 $this->assertEquals(0, $cache->getServiceType());
59 $this->assertFalse($cache->isValid(
'test_key'));
60 $cache->set(
'test_key',
'value');
61 $this->assertTrue($cache->isValid(
'test_key'));
62 $this->assertEquals(
'value', $cache->get(
'test_key'));
Class ilGlobalCacheSettings.
static setup(ilGlobalCacheSettings $ilGlobalCacheSettings)
static getInstance(?string $component)