‪TYPO3CMS  11.5
CacheManagerTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Prophecy\Argument;
21 use Prophecy\PhpUnit\ProphecyTrait;
41 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
42 
46 class ‪CacheManagerTest extends UnitTestCase
47 {
48  use ProphecyTrait;
49 
54  {
55  $this->expectException(DuplicateIdentifierException::class);
56  $this->expectExceptionCode(1203698223);
57 
58  $manager = new ‪CacheManager();
59  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
60  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
61  ->disableOriginalConstructor()
62  ->getMock();
63  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('test');
64  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
65  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
66  ->disableOriginalConstructor()
67  ->getMock();
68  $cache2->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('test');
69  $manager->registerCache($cache1);
70  $manager->registerCache($cache2);
71  }
72 
76  public function ‪managerReturnsThePreviouslyRegisteredCache(): void
77  {
78  $manager = new ‪CacheManager();
79  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
80  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
81  ->disableOriginalConstructor()
82  ->getMock();
83  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
84  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
85  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
86  ->disableOriginalConstructor()
87  ->getMock();
88  $cache2->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache2');
89  $manager->registerCache($cache1);
90  $manager->registerCache($cache2);
91  self::assertSame($cache2, $manager->getCache('cache2'), 'The cache returned by getCache() was not the same I registered.');
92  }
93 
98  {
99  $this->expectException(NoSuchCacheException::class);
100  $this->expectExceptionCode(1203699034);
101 
102  $manager = new ‪CacheManager();
103  $cache = $this->getMockBuilder(AbstractFrontend::class)
104  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
105  ->disableOriginalConstructor()
106  ->getMock();
107  $cache->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('someidentifier');
108  $manager->registerCache($cache);
109  $manager->getCache('someidentifier');
110  $manager->getCache('doesnotexist');
111  }
112 
116  public function ‪hasCacheReturnsCorrectResult(): void
117  {
118  $manager = new ‪CacheManager();
119  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
120  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
121  ->disableOriginalConstructor()
122  ->getMock();
123  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
124  $manager->registerCache($cache1);
125  self::assertTrue($manager->hasCache('cache1'), 'hasCache() did not return TRUE.');
126  self::assertFalse($manager->hasCache('cache2'), 'hasCache() did not return FALSE.');
127  }
128 
133  {
134  $manager = new ‪CacheManager();
135  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
136  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
137  ->disableOriginalConstructor()
138  ->getMock();
139  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
140  $cache1->expects(self::once())->method('flushByTag')->with(self::equalTo('theTag'));
141  $manager->registerCache($cache1);
142  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
143  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
144  ->disableOriginalConstructor()
145  ->getMock();
146  $cache2->expects(self::once())->method('flushByTag')->with(self::equalTo('theTag'));
147  $manager->registerCache($cache2);
148  $manager->flushCachesByTag('theTag');
149  }
150 
155  {
156  $manager = new ‪CacheManager();
157  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
158  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTags'])
159  ->disableOriginalConstructor()
160  ->getMock();
161  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
162  $cache1->expects(self::once())->method('flushByTags')->with(self::equalTo(['theTag']));
163  $manager->registerCache($cache1);
164  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
165  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTags'])
166  ->disableOriginalConstructor()
167  ->getMock();
168  $cache2->expects(self::once())->method('flushByTags')->with(self::equalTo(['theTag']));
169  $manager->registerCache($cache2);
170  $manager->flushCachesByTags(['theTag']);
171  }
172 
177  {
178  $manager = new ‪CacheManager();
179  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
180  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
181  ->disableOriginalConstructor()
182  ->getMock();
183  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
184  $cache1->expects(self::once())->method('flush');
185  $manager->registerCache($cache1);
186  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
187  ->onlyMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
188  ->disableOriginalConstructor()
189  ->getMock();
190  $cache2->expects(self::once())->method('flush');
191  $manager->registerCache($cache2);
192  $manager->flushCaches();
193  }
194 
199  {
200  $this->expectException(NoSuchCacheGroupException::class);
201  $this->expectExceptionCode(1390334120);
202 
203  $manager = new ‪CacheManager();
204  $manager->flushCachesInGroup('nonExistingGroup');
205  }
206 
211  {
212  $this->expectException(NoSuchCacheGroupException::class);
213  $this->expectExceptionCode(1390334120);
214 
215  $manager = new ‪CacheManager();
216  $manager->flushCachesInGroup('nonExistingGroup');
217  }
218 
223  {
224  $manager = new ‪CacheManager();
225  $cacheIdentifier = 'aCache';
226  $configuration = [
227  $cacheIdentifier => [
228  'frontend' => \stdClass::class,
229  'backend' => BackendFixture::class,
230  'options' => [],
231  ],
232  ];
233  $manager->setCacheConfigurations($configuration);
234  $this->expectException(InvalidCacheException::class);
235  $this->expectExceptionCode(1464550984);
236  $manager->getCache($cacheIdentifier);
237  }
238 
243  {
244  $manager = new ‪CacheManager();
245  $cacheIdentifier = 'aCache';
246  $configuration = [
247  $cacheIdentifier => [
248  'frontend' => FrontendFixture::class,
249  'backend' => \stdClass::class,
250  'options' => [],
251  ],
252  ];
253  $manager->setCacheConfigurations($configuration);
254  $this->expectException(InvalidBackendException::class);
255  $this->expectExceptionCode(1464550977);
256  $manager->getCache($cacheIdentifier);
257  }
258 
263  {
264  $manager = new ‪CacheManager();
265  $cacheIdentifier = 'aCache';
266  $configuration = [
267  $cacheIdentifier => [
268  'backend' => BackendFixture::class,
269  'frontend' => FrontendInitializeObjectFixture::class,
270  'options' => [],
271  ],
272  ];
273  $manager->setCacheConfigurations($configuration);
274  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
275  $this->expectException(\RuntimeException::class);
276  $this->expectExceptionCode(1464553495);
277  $manager->getCache($cacheIdentifier);
278  }
279 
284  {
285  $manager = new ‪CacheManager();
286  $cacheIdentifier = 'aCache';
287  $configuration = [
288  $cacheIdentifier => [
289  'backend' => BackendInitializeObjectFixture::class,
290  'frontend' => FrontendFixture::class,
291  'options' => [],
292  ],
293  ];
294  $manager->setCacheConfigurations($configuration);
295  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
296  $this->expectException(\RuntimeException::class);
297  $this->expectExceptionCode(1464552894);
298  $manager->getCache($cacheIdentifier);
299  }
300 
305  {
306  $manager = new ‪CacheManager();
307  $cacheIdentifier = 'aCache';
308  $configuration = [
309  $cacheIdentifier => [
310  'backend' => BackendConfigurationOptionFixture::class,
311  'frontend' => FrontendFixture::class,
312  'options' => [
313  'anOption' => 'anOptionValue',
314  ],
315  ],
316  ];
317  $manager->setCacheConfigurations($configuration);
318  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
319  $this->expectException(\RuntimeException::class);
320  $this->expectExceptionCode(1464555007);
321  $manager->getCache($cacheIdentifier);
322  }
323 
328  {
329  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
330  $cacheIdentifier = ‪StringUtility::getUniqueId('Test');
331  $configuration = [
332  $cacheIdentifier => [
333  'backend' => BackendFixture::class,
334  'options' => [],
335  ],
336  ];
337  $defaultCacheConfiguration = [
338  'frontend' => FrontendDefaultFixture::class,
339  'options' => [],
340  'groups' => [],
341  ];
342  $manager->_set('defaultCacheConfiguration', $defaultCacheConfiguration);
343  $manager->setCacheConfigurations($configuration);
344  $this->expectException(\RuntimeException::class);
345  $this->expectExceptionCode(1476109149);
346  $manager->getCache($cacheIdentifier);
347  }
348 
353  {
354  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
355  $cacheIdentifier = ‪StringUtility::getUniqueId('Test');
356  $configuration = [
357  $cacheIdentifier => [
358  'frontend' => FrontendFixture::class,
359  'options' => [],
360  ],
361  ];
362  $defaultCacheConfiguration = [
363  'backend' => BackendDefaultFixture::class,
364  'options' => [],
365  'groups' => [],
366  ];
367  $manager->_set('defaultCacheConfiguration', $defaultCacheConfiguration);
368  $manager->setCacheConfigurations($configuration);
369  $this->expectException(\RuntimeException::class);
370  $this->expectExceptionCode(1464556045);
371  $manager->getCache($cacheIdentifier);
372  }
373 
378  {
379  $manager = new ‪CacheManager();
380  $cacheIdentifier = 'aCache';
381  $configuration = [
382  $cacheIdentifier => [
383  'backend' => BackendFixture::class,
384  'frontend' => FrontendFixture::class,
385  'options' => [],
386  ],
387  ];
388  $manager->setCacheConfigurations($configuration);
389  self::assertInstanceOf(FrontendFixture::class, $manager->getCache($cacheIdentifier));
390  }
391 
395  public function ‪getCacheGivesIdentifierToCacheFrontend(): void
396  {
397  $manager = new ‪CacheManager();
398  $cacheIdentifier = 'aCache';
399  $configuration = [
400  $cacheIdentifier => [
401  'backend' => BackendFixture::class,
402  'frontend' => FrontendIdentifierFixture::class,
403  'options' => [],
404  ],
405  ];
406  $manager->setCacheConfigurations($configuration);
407  $this->expectException(\RuntimeException::class);
408  $this->expectExceptionCode(1464555650);
409  $manager->getCache($cacheIdentifier);
410  }
411 
415  public function ‪getCacheGivesBackendInstanceToCacheFrontend(): void
416  {
417  $manager = new ‪CacheManager();
418  $cacheIdentifier = 'aCache';
419  $configuration = [
420  $cacheIdentifier => [
421  'backend' => BackendFixture::class,
422  'frontend' => FrontendBackendInstanceFixture::class,
423  'options' => [],
424  ],
425  ];
426  $manager->setCacheConfigurations($configuration);
427  $this->expectException(\RuntimeException::class);
428  $this->expectExceptionCode(1464557160);
429  $manager->getCache($cacheIdentifier);
430  }
431 
436  {
437  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
438  $cacheIdentifier = 'aTest';
439 
440  $cacheGroups = [
441  'group1' => [$cacheIdentifier],
442  'group2' => [$cacheIdentifier],
443  ];
444  $manager->_set('cacheGroups', $cacheGroups);
445 
446  $frontend = $this->prophesize(FrontendFixture::class);
447 
448  $caches = [
449  $cacheIdentifier => $frontend->reveal(),
450  ];
451  $manager->_set('caches', $caches);
452 
453  $frontend->flushByTags(Argument::any())->shouldNotBeCalled();
454 
455  $configuration = [
456  $cacheIdentifier => [
457  'frontend' => $frontend,
458  'backend' => BackendFixture::class,
459  'options' => [],
460  'groups' => ['group1', 'group2'],
461  ],
462  ];
463  $manager->setCacheConfigurations($configuration);
464  $manager->flushCachesInGroupByTags('group2', []);
465  }
466 
470  public function ‪flushCachesInGroupByTagsDeletesByTag(): void
471  {
472  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
473  $cacheIdentifier = 'aTest';
474 
475  $cacheGroups = [
476  'group1' => [$cacheIdentifier],
477  'group2' => [$cacheIdentifier],
478  ];
479  $manager->_set('cacheGroups', $cacheGroups);
480 
481  $frontend = $this->prophesize(FrontendFixture::class);
482 
483  $caches = [
484  $cacheIdentifier => $frontend->reveal(),
485  ];
486  $manager->_set('caches', $caches);
487 
488  $tags = ['tag1', 'tag2'];
489  $frontend->flushByTags($tags)->shouldBeCalled();
490 
491  $configuration = [
492  $cacheIdentifier => [
493  'frontend' => $frontend,
494  'backend' => BackendFixture::class,
495  'options' => [],
496  'groups' => ['group1', 'group2'],
497  ],
498  ];
499  $manager->setCacheConfigurations($configuration);
500  $manager->flushCachesInGroupByTags('group2', $tags);
501  }
502 
507  {
508  $this->expectException(\InvalidArgumentException::class);
509  $this->expectExceptionCode(1596980032);
510 
511  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy']);
512  $manager->setCacheConfigurations([
513  '' => [
514  'frontend' => VariableFrontend::class,
515  'backend' => Typo3DatabaseBackend::class,
516  'options' => [
517  'compression' => true,
518  ],
519  'groups' => ['pages'],
520  ],
521  ]);
522  }
523 
528  {
529  $this->expectException(\InvalidArgumentException::class);
530  $this->expectExceptionCode(1596980033);
531 
532  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy']);
533  $manager->setCacheConfigurations([
534  'cache_' => [
535  'frontend' => VariableFrontend::class,
536  'backend' => Typo3DatabaseBackend::class,
537  'options' => [
538  'compression' => true,
539  ],
540  'groups' => ['pages'],
541  ],
542  ]);
543  }
544 }
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesCallsTheFlushMethodOfAllRegisteredCaches
‪flushCachesCallsTheFlushMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:175
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesByTagCallsTheFlushByTagMethodOfAllRegisteredCaches
‪flushCachesByTagCallsTheFlushByTagMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:131
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagThrowsExceptionForNonExistingGroup
‪flushCachesInGroupByTagThrowsExceptionForNonExistingGroup()
Definition: CacheManagerTest.php:209
‪TYPO3\CMS\Core\Cache\Exception\InvalidBackendException
Definition: InvalidBackendException.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture
Definition: FrontendFixture.php:26
‪TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend
Definition: Typo3DatabaseBackend.php:30
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendIdentifierFixture
Definition: FrontendIdentifierFixture.php:24
‪TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
Definition: NoSuchCacheException.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesBackendWithGivenConfiguration
‪getCacheCreatesBackendWithGivenConfiguration()
Definition: CacheManagerTest.php:303
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheGivesBackendInstanceToCacheFrontend
‪getCacheGivesBackendInstanceToCacheFrontend()
Definition: CacheManagerTest.php:414
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCallsInitializeObjectOnBackendInstance
‪getCacheCallsInitializeObjectOnBackendInstance()
Definition: CacheManagerTest.php:282
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendConfigurationOptionFixture
Definition: BackendConfigurationOptionFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendFixture
Definition: BackendFixture.php:27
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheReturnsInstanceOfTheSpecifiedCacheFrontend
‪getCacheReturnsInstanceOfTheSpecifiedCacheFrontend()
Definition: CacheManagerTest.php:376
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCallsInitializeObjectOnFrontendInstance
‪getCacheCallsInitializeObjectOnFrontendInstance()
Definition: CacheManagerTest.php:261
‪TYPO3\CMS\Core\Cache\Frontend\VariableFrontend
Definition: VariableFrontend.php:25
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupThrowsExceptionForNonExistingGroup
‪flushCachesInGroupThrowsExceptionForNonExistingGroup()
Definition: CacheManagerTest.php:197
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\managerThrowsExceptionOnCacheRegistrationWithAlreadyExistingIdentifier
‪managerThrowsExceptionOnCacheRegistrationWithAlreadyExistingIdentifier()
Definition: CacheManagerTest.php:52
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendBackendInstanceFixture
Definition: FrontendBackendInstanceFixture.php:24
‪TYPO3\CMS\Core\Cache\CacheManager
Definition: CacheManager.php:36
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesCacheInstanceWithFallbackToDefaultBackend
‪getCacheCreatesCacheInstanceWithFallbackToDefaultBackend()
Definition: CacheManagerTest.php:351
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionIfConfiguredBackendDoesNotImplementBackendInterface
‪getCacheThrowsExceptionIfConfiguredBackendDoesNotImplementBackendInterface()
Definition: CacheManagerTest.php:241
‪TYPO3\CMS\Core\Cache\Exception\DuplicateIdentifierException
Definition: DuplicateIdentifierException.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendInitializeObjectFixture
Definition: BackendInitializeObjectFixture.php:24
‪TYPO3\CMS\Core\Cache\Exception\InvalidCacheException
Definition: InvalidCacheException.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendDefaultFixture
Definition: BackendDefaultFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\managerReturnsThePreviouslyRegisteredCache
‪managerReturnsThePreviouslyRegisteredCache()
Definition: CacheManagerTest.php:75
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagsDeletesByTag
‪flushCachesInGroupByTagsDeletesByTag()
Definition: CacheManagerTest.php:469
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendInitializeObjectFixture
Definition: FrontendInitializeObjectFixture.php:24
‪TYPO3\CMS\Core\Utility\StringUtility\getUniqueId
‪static string getUniqueId($prefix='')
Definition: StringUtility.php:128
‪TYPO3\CMS\Core\Tests\Unit\Cache
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest
Definition: CacheManagerTest.php:47
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionIfConfiguredFrontendDoesNotImplementFrontendInterface
‪getCacheThrowsExceptionIfConfiguredFrontendDoesNotImplementFrontendInterface()
Definition: CacheManagerTest.php:221
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\setCacheConfigurationsThrowsExceptionIfMigratedConfiguredCacheDoesNotHaveAnIdentifier
‪setCacheConfigurationsThrowsExceptionIfMigratedConfiguredCacheDoesNotHaveAnIdentifier()
Definition: CacheManagerTest.php:526
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\setCacheConfigurationsThrowsExceptionIfConfiguredCacheDoesNotHaveAnIdentifier
‪setCacheConfigurationsThrowsExceptionIfConfiguredCacheDoesNotHaveAnIdentifier()
Definition: CacheManagerTest.php:505
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesCacheInstanceWithFallbackToDefaultFrontend
‪getCacheCreatesCacheInstanceWithFallbackToDefaultFrontend()
Definition: CacheManagerTest.php:326
‪TYPO3\CMS\Core\Cache\Exception\NoSuchCacheGroupException
Definition: NoSuchCacheGroupException.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagsWithEmptyTagsArrayDoesNotFlushCaches
‪flushCachesInGroupByTagsWithEmptyTagsArrayDoesNotFlushCaches()
Definition: CacheManagerTest.php:434
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionForNonExistingIdentifier
‪getCacheThrowsExceptionForNonExistingIdentifier()
Definition: CacheManagerTest.php:96
‪TYPO3\CMS\Core\Utility\StringUtility
Definition: StringUtility.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\hasCacheReturnsCorrectResult
‪hasCacheReturnsCorrectResult()
Definition: CacheManagerTest.php:115
‪TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend
Definition: AbstractFrontend.php:26
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesByTagsCallsTheFlushByTagsMethodOfAllRegisteredCaches
‪flushCachesByTagsCallsTheFlushByTagsMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:153
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheGivesIdentifierToCacheFrontend
‪getCacheGivesIdentifierToCacheFrontend()
Definition: CacheManagerTest.php:394
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendDefaultFixture
Definition: FrontendDefaultFixture.php:24