‪TYPO3CMS  10.4
CacheManagerTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Prophecy\Argument;
36 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
37 
41 class ‪CacheManagerTest extends UnitTestCase
42 {
47  {
48  $this->expectException(DuplicateIdentifierException::class);
49  $this->expectExceptionCode(1203698223);
50 
51  $manager = new ‪CacheManager();
52  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
53  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
54  ->disableOriginalConstructor()
55  ->getMock();
56  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('test');
57  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
58  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
59  ->disableOriginalConstructor()
60  ->getMock();
61  $cache2->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('test');
62  $manager->registerCache($cache1);
63  $manager->registerCache($cache2);
64  }
65 
70  {
71  $manager = new ‪CacheManager();
72  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
73  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
74  ->disableOriginalConstructor()
75  ->getMock();
76  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
77  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
78  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
79  ->disableOriginalConstructor()
80  ->getMock();
81  $cache2->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache2');
82  $manager->registerCache($cache1);
83  $manager->registerCache($cache2);
84  self::assertSame($cache2, $manager->getCache('cache2'), 'The cache returned by getCache() was not the same I registered.');
85  }
86 
91  {
92  $this->expectException(NoSuchCacheException::class);
93  $this->expectExceptionCode(1203699034);
94 
95  $manager = new ‪CacheManager();
96  $cache = $this->getMockBuilder(AbstractFrontend::class)
97  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
98  ->disableOriginalConstructor()
99  ->getMock();
100  $cache->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('someidentifier');
101  $manager->registerCache($cache);
102  $manager->getCache('someidentifier');
103  $manager->getCache('doesnotexist');
104  }
105 
110  {
111  $manager = new ‪CacheManager();
112  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
113  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
114  ->disableOriginalConstructor()
115  ->getMock();
116  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
117  $manager->registerCache($cache1);
118  self::assertTrue($manager->hasCache('cache1'), 'hasCache() did not return TRUE.');
119  self::assertFalse($manager->hasCache('cache2'), 'hasCache() did not return FALSE.');
120  }
121 
126  {
127  $manager = new ‪CacheManager();
128  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
129  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
130  ->disableOriginalConstructor()
131  ->getMock();
132  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
133  $cache1->expects(self::once())->method('flushByTag')->with(self::equalTo('theTag'));
134  $manager->registerCache($cache1);
135  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
136  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
137  ->disableOriginalConstructor()
138  ->getMock();
139  $cache2->expects(self::once())->method('flushByTag')->with(self::equalTo('theTag'));
140  $manager->registerCache($cache2);
141  $manager->flushCachesByTag('theTag');
142  }
143 
148  {
149  $manager = new ‪CacheManager();
150  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
151  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTags'])
152  ->disableOriginalConstructor()
153  ->getMock();
154  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
155  $cache1->expects(self::once())->method('flushByTags')->with(self::equalTo(['theTag']));
156  $manager->registerCache($cache1);
157  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
158  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTags'])
159  ->disableOriginalConstructor()
160  ->getMock();
161  $cache2->expects(self::once())->method('flushByTags')->with(self::equalTo(['theTag']));
162  $manager->registerCache($cache2);
163  $manager->flushCachesByTags(['theTag']);
164  }
165 
170  {
171  $manager = new ‪CacheManager();
172  $cache1 = $this->getMockBuilder(AbstractFrontend::class)
173  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
174  ->disableOriginalConstructor()
175  ->getMock();
176  $cache1->expects(self::atLeastOnce())->method('getIdentifier')->willReturn('cache1');
177  $cache1->expects(self::once())->method('flush');
178  $manager->registerCache($cache1);
179  $cache2 = $this->getMockBuilder(AbstractFrontend::class)
180  ->setMethods(['getIdentifier', 'set', 'get', 'has', 'remove', 'flush', 'flushByTag'])
181  ->disableOriginalConstructor()
182  ->getMock();
183  $cache2->expects(self::once())->method('flush');
184  $manager->registerCache($cache2);
185  $manager->flushCaches();
186  }
187 
192  {
193  $this->expectException(NoSuchCacheGroupException::class);
194  $this->expectExceptionCode(1390334120);
195 
196  $manager = new ‪CacheManager();
197  $manager->flushCachesInGroup('nonExistingGroup');
198  }
199 
204  {
205  $this->expectException(NoSuchCacheGroupException::class);
206  $this->expectExceptionCode(1390334120);
207 
208  $manager = new ‪CacheManager();
209  $manager->flushCachesInGroup('nonExistingGroup');
210  }
211 
216  {
217  $manager = new ‪CacheManager();
218  $cacheIdentifier = 'aCache';
219  $configuration = [
220  $cacheIdentifier => [
221  'frontend' => \stdClass::class,
222  'backend' => BackendFixture::class,
223  'options' => [],
224  ],
225  ];
226  $manager->setCacheConfigurations($configuration);
227  $this->expectException(InvalidCacheException::class);
228  $this->expectExceptionCode(1464550984);
229  $manager->getCache($cacheIdentifier);
230  }
231 
236  {
237  $manager = new ‪CacheManager();
238  $cacheIdentifier = 'aCache';
239  $configuration = [
240  $cacheIdentifier => [
241  'frontend' => FrontendFixture::class,
242  'backend' => \stdClass::class,
243  'options' => [],
244  ],
245  ];
246  $manager->setCacheConfigurations($configuration);
247  $this->expectException(InvalidBackendException::class);
248  $this->expectExceptionCode(1464550977);
249  $manager->getCache($cacheIdentifier);
250  }
251 
256  {
257  $manager = new ‪CacheManager();
258  $cacheIdentifier = 'aCache';
259  $configuration = [
260  $cacheIdentifier => [
261  'backend' => BackendFixture::class,
262  'frontend' => FrontendInitializeObjectFixture::class,
263  'options' => [],
264  ],
265  ];
266  $manager->setCacheConfigurations($configuration);
267  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
268  $this->expectException(\RuntimeException::class);
269  $this->expectExceptionCode(1464553495);
270  $manager->getCache($cacheIdentifier);
271  }
272 
277  {
278  $manager = new ‪CacheManager();
279  $cacheIdentifier = 'aCache';
280  $configuration = [
281  $cacheIdentifier => [
282  'backend' => BackendInitializeObjectFixture::class,
283  'frontend' => FrontendFixture::class,
284  'options' => [],
285  ],
286  ];
287  $manager->setCacheConfigurations($configuration);
288  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
289  $this->expectException(\RuntimeException::class);
290  $this->expectExceptionCode(1464552894);
291  $manager->getCache($cacheIdentifier);
292  }
293 
298  {
299  $manager = new ‪CacheManager();
300  $cacheIdentifier = 'aCache';
301  $configuration = [
302  $cacheIdentifier => [
303  'backend' => BackendConfigurationOptionFixture::class,
304  'frontend' => FrontendFixture::class,
305  'options' => [
306  'anOption' => 'anOptionValue',
307  ],
308  ],
309  ];
310  $manager->setCacheConfigurations($configuration);
311  // BackendInitializeObjectFixture throws exception if initializeObject() is called, so expect this
312  $this->expectException(\RuntimeException::class);
313  $this->expectExceptionCode(1464555007);
314  $manager->getCache($cacheIdentifier);
315  }
316 
321  {
323  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
324  $cacheIdentifier = ‪StringUtility::getUniqueId('Test');
325  $configuration = [
326  $cacheIdentifier => [
327  'backend' => BackendFixture::class,
328  'options' => []
329  ]
330  ];
331  $defaultCacheConfiguration = [
332  'frontend' => FrontendDefaultFixture::class,
333  'options' => [],
334  'groups' => [],
335  ];
336  $manager->_set('defaultCacheConfiguration', $defaultCacheConfiguration);
337  $manager->setCacheConfigurations($configuration);
338  $this->expectException(\RuntimeException::class);
339  $this->expectExceptionCode(1476109149);
340  $manager->getCache($cacheIdentifier);
341  }
342 
347  {
349  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
350  $cacheIdentifier = ‪StringUtility::getUniqueId('Test');
351  $configuration = [
352  $cacheIdentifier => [
353  'frontend' => FrontendFixture::class,
354  'options' => []
355  ]
356  ];
357  $defaultCacheConfiguration = [
358  'backend' => BackendDefaultFixture::class,
359  'options' => [],
360  'groups' => [],
361  ];
362  $manager->_set('defaultCacheConfiguration', $defaultCacheConfiguration);
363  $manager->setCacheConfigurations($configuration);
364  $this->expectException(\RuntimeException::class);
365  $this->expectExceptionCode(1464556045);
366  $manager->getCache($cacheIdentifier);
367  }
368 
373  {
374  $manager = new ‪CacheManager();
375  $cacheIdentifier = 'aCache';
376  $configuration = [
377  $cacheIdentifier => [
378  'backend' => BackendFixture::class,
379  'frontend' => FrontendFixture::class,
380  'options' => [],
381  ],
382  ];
383  $manager->setCacheConfigurations($configuration);
384  self::assertInstanceOf(FrontendFixture::class, $manager->getCache($cacheIdentifier));
385  }
386 
391  {
392  $manager = new ‪CacheManager();
393  $cacheIdentifier = 'aCache';
394  $configuration = [
395  $cacheIdentifier => [
396  'backend' => BackendFixture::class,
397  'frontend' => FrontendIdentifierFixture::class,
398  'options' => [],
399  ],
400  ];
401  $manager->setCacheConfigurations($configuration);
402  $this->expectException(\RuntimeException::class);
403  $this->expectExceptionCode(1464555650);
404  $manager->getCache($cacheIdentifier);
405  }
406 
411  {
412  $manager = new ‪CacheManager();
413  $cacheIdentifier = 'aCache';
414  $configuration = [
415  $cacheIdentifier => [
416  'backend' => BackendFixture::class,
417  'frontend' => FrontendBackendInstanceFixture::class,
418  'options' => [],
419  ],
420  ];
421  $manager->setCacheConfigurations($configuration);
422  $this->expectException(\RuntimeException::class);
423  $this->expectExceptionCode(1464557160);
424  $manager->getCache($cacheIdentifier);
425  }
426 
431  {
433  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
434  $cacheIdentifier = 'aTest';
435 
436  $cacheGroups = [
437  'group1' => [$cacheIdentifier],
438  'group2' => [$cacheIdentifier],
439  ];
440  $manager->_set('cacheGroups', $cacheGroups);
441 
442  $frontend = $this->prophesize(FrontendFixture::class);
443 
444  $caches = [
445  $cacheIdentifier => $frontend->reveal()
446  ];
447  $manager->_set('caches', $caches);
448 
449  $frontend->flushByTags(Argument::any())->shouldNotBeCalled();
450 
451  $configuration = [
452  $cacheIdentifier => [
453  'frontend' => $frontend,
454  'backend' => BackendFixture::class,
455  'options' => [],
456  'groups' => ['group1', 'group2']
457  ],
458  ];
459  $manager->setCacheConfigurations($configuration);
460  $manager->flushCachesInGroupByTags('group2', []);
461  }
462 
467  {
469  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy'], [], '', false);
470  $cacheIdentifier = 'aTest';
471 
472  $cacheGroups = [
473  'group1' => [$cacheIdentifier],
474  'group2' => [$cacheIdentifier],
475  ];
476  $manager->_set('cacheGroups', $cacheGroups);
477 
478  $frontend = $this->prophesize(FrontendFixture::class);
479 
480  $caches = [
481  $cacheIdentifier => $frontend->reveal()
482  ];
483  $manager->_set('caches', $caches);
484 
485  $tags = ['tag1', 'tag2'];
486  $frontend->flushByTags($tags)->shouldBeCalled();
487 
488  $configuration = [
489  $cacheIdentifier => [
490  'frontend' => $frontend,
491  'backend' => BackendFixture::class,
492  'options' => [],
493  'groups' => ['group1', 'group2']
494  ],
495  ];
496  $manager->setCacheConfigurations($configuration);
497  $manager->flushCachesInGroupByTags('group2', $tags);
498  }
499 
504  {
505  $rawConfiguration = [
506  'pages' => [
507  'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
508  'backend' => \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
509  'options' => [
510  'compression' => true,
511  ],
512  'groups' => ['pages'],
513  ],
514  'cache_pages' => [
515  'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
516  'options' => [
517  'hostname' => 'redis',
518  ],
519  'groups' => ['pages'],
520  ],
521  ];
522  $expectedConfiguration = [
523  'pages' => [
524  'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
525  'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
526  'options' => [
527  'compression' => true,
528  'hostname' => 'redis',
529  ],
530  'groups' => ['pages']
531  ],
532  ];
533  $this->expectDeprecation();
534 
536  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy']);
537  $manager->setCacheConfigurations($rawConfiguration);
538  self::assertEquals($expectedConfiguration, $manager->_get('cacheConfigurations'));
539  }
540 
545  {
546  $this->expectException(\InvalidArgumentException::class);
547  $this->expectExceptionCode(1596980032);
548 
550  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy']);
551  $manager->setCacheConfigurations([
552  '' => [
553  'frontend' => \‪TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
554  'backend' => \‪TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
555  'options' => [
556  'compression' => true,
557  ],
558  'groups' => ['pages'],
559  ]
560  ]);
561  }
562 
567  {
568  $this->expectException(\InvalidArgumentException::class);
569  $this->expectExceptionCode(1596980033);
570 
572  $manager = $this->getAccessibleMock(CacheManager::class, ['dummy']);
573  $manager->setCacheConfigurations([
574  'cache_' => [
575  'frontend' => \‪TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
576  'backend' => \‪TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
577  'options' => [
578  'compression' => true,
579  ],
580  'groups' => ['pages'],
581  ]
582  ]);
583  }
584 }
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesCallsTheFlushMethodOfAllRegisteredCaches
‪flushCachesCallsTheFlushMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:169
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesByTagCallsTheFlushByTagMethodOfAllRegisteredCaches
‪flushCachesByTagCallsTheFlushByTagMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:125
‪TYPO3
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagThrowsExceptionForNonExistingGroup
‪flushCachesInGroupByTagThrowsExceptionForNonExistingGroup()
Definition: CacheManagerTest.php:203
‪TYPO3\CMS\Core\Cache\Exception\InvalidBackendException
Definition: InvalidBackendException.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture
Definition: FrontendFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendIdentifierFixture
Definition: FrontendIdentifierFixture.php:22
‪TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
Definition: NoSuchCacheException.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesBackendWithGivenConfiguration
‪getCacheCreatesBackendWithGivenConfiguration()
Definition: CacheManagerTest.php:297
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheGivesBackendInstanceToCacheFrontend
‪getCacheGivesBackendInstanceToCacheFrontend()
Definition: CacheManagerTest.php:410
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCallsInitializeObjectOnBackendInstance
‪getCacheCallsInitializeObjectOnBackendInstance()
Definition: CacheManagerTest.php:276
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendConfigurationOptionFixture
Definition: BackendConfigurationOptionFixture.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendFixture
Definition: BackendFixture.php:25
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheReturnsInstanceOfTheSpecifiedCacheFrontend
‪getCacheReturnsInstanceOfTheSpecifiedCacheFrontend()
Definition: CacheManagerTest.php:372
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCallsInitializeObjectOnFrontendInstance
‪getCacheCallsInitializeObjectOnFrontendInstance()
Definition: CacheManagerTest.php:255
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupThrowsExceptionForNonExistingGroup
‪flushCachesInGroupThrowsExceptionForNonExistingGroup()
Definition: CacheManagerTest.php:191
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\managerThrowsExceptionOnCacheRegistrationWithAlreadyExistingIdentifier
‪managerThrowsExceptionOnCacheRegistrationWithAlreadyExistingIdentifier()
Definition: CacheManagerTest.php:46
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendBackendInstanceFixture
Definition: FrontendBackendInstanceFixture.php:22
‪TYPO3\CMS\Core\Cache\CacheManager
Definition: CacheManager.php:35
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesCacheInstanceWithFallbackToDefaultBackend
‪getCacheCreatesCacheInstanceWithFallbackToDefaultBackend()
Definition: CacheManagerTest.php:346
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionIfConfiguredBackendDoesNotImplementBackendInterface
‪getCacheThrowsExceptionIfConfiguredBackendDoesNotImplementBackendInterface()
Definition: CacheManagerTest.php:235
‪TYPO3\CMS\Core\Cache\Exception\DuplicateIdentifierException
Definition: DuplicateIdentifierException.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendInitializeObjectFixture
Definition: BackendInitializeObjectFixture.php:22
‪TYPO3\CMS\Core\Cache\Exception\InvalidCacheException
Definition: InvalidCacheException.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\BackendDefaultFixture
Definition: BackendDefaultFixture.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\managerReturnsThePreviouslyRegisteredCache
‪managerReturnsThePreviouslyRegisteredCache()
Definition: CacheManagerTest.php:69
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagsDeletesByTag
‪flushCachesInGroupByTagsDeletesByTag()
Definition: CacheManagerTest.php:466
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendInitializeObjectFixture
Definition: FrontendInitializeObjectFixture.php:22
‪TYPO3\CMS\Core\Utility\StringUtility\getUniqueId
‪static string getUniqueId($prefix='')
Definition: StringUtility.php:92
‪TYPO3\CMS\Core\Tests\Unit\Cache
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest
Definition: CacheManagerTest.php:42
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionIfConfiguredFrontendDoesNotImplementFrontendInterface
‪getCacheThrowsExceptionIfConfiguredFrontendDoesNotImplementFrontendInterface()
Definition: CacheManagerTest.php:215
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\setCacheConfigurationsThrowsExceptionIfMigratedConfiguredCacheDoesNotHaveAnIdentifier
‪setCacheConfigurationsThrowsExceptionIfMigratedConfiguredCacheDoesNotHaveAnIdentifier()
Definition: CacheManagerTest.php:566
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\setCacheConfigurationsThrowsExceptionIfConfiguredCacheDoesNotHaveAnIdentifier
‪setCacheConfigurationsThrowsExceptionIfConfiguredCacheDoesNotHaveAnIdentifier()
Definition: CacheManagerTest.php:544
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheCreatesCacheInstanceWithFallbackToDefaultFrontend
‪getCacheCreatesCacheInstanceWithFallbackToDefaultFrontend()
Definition: CacheManagerTest.php:320
‪TYPO3\CMS\Core\Cache\Exception\NoSuchCacheGroupException
Definition: NoSuchCacheGroupException.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesInGroupByTagsWithEmptyTagsArrayDoesNotFlushCaches
‪flushCachesInGroupByTagsWithEmptyTagsArrayDoesNotFlushCaches()
Definition: CacheManagerTest.php:430
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\setCacheConfigurationsMergesLegacyConfigCorrectly
‪setCacheConfigurationsMergesLegacyConfigCorrectly()
Definition: CacheManagerTest.php:503
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheThrowsExceptionForNonExistingIdentifier
‪getCacheThrowsExceptionForNonExistingIdentifier()
Definition: CacheManagerTest.php:90
‪TYPO3\CMS\Core\Utility\StringUtility
Definition: StringUtility.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\hasCacheReturnsCorrectResult
‪hasCacheReturnsCorrectResult()
Definition: CacheManagerTest.php:109
‪TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend
Definition: AbstractFrontend.php:27
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\flushCachesByTagsCallsTheFlushByTagsMethodOfAllRegisteredCaches
‪flushCachesByTagsCallsTheFlushByTagsMethodOfAllRegisteredCaches()
Definition: CacheManagerTest.php:147
‪TYPO3\CMS\Core\Tests\Unit\Cache\CacheManagerTest\getCacheGivesIdentifierToCacheFrontend
‪getCacheGivesIdentifierToCacheFrontend()
Definition: CacheManagerTest.php:390
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendDefaultFixture
Definition: FrontendDefaultFixture.php:22