33 $this->cacheService = new \TYPO3\CMS\Extbase\Service\CacheService();
34 $this->cacheManagerMock = $this->getMock(
'TYPO3\\CMS\\Core\\Cache\\CacheManager');
35 $this->cacheService->injectCacheManager($this->cacheManagerMock);
42 $this->cacheManagerMock->expects($this->once())->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_123');
43 $this->cacheService->clearPageCache(123);
50 $this->cacheManagerMock->expects($this->once())->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_0');
51 $this->cacheService->clearPageCache(
'Foo');
58 $this->cacheManagerMock->expects($this->once())->method(
'flushCachesInGroup')->with(
'pages');
59 $this->cacheService->clearPageCache();
66 $this->cacheManagerMock->expects($this->at(0))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_1');
67 $this->cacheManagerMock->expects($this->at(1))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_2');
68 $this->cacheManagerMock->expects($this->at(2))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_3');
69 $this->cacheService->clearPageCache(array(1, 2, 3));
77 $this->cacheManagerMock->expects($this->at(0))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_2');
78 $this->cacheManagerMock->expects($this->at(1))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_15');
79 $this->cacheManagerMock->expects($this->at(2))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_8');
81 $this->cacheService->getPageIdStack()->push(8);
82 $this->cacheService->getPageIdStack()->push(15);
83 $this->cacheService->getPageIdStack()->push(2);
85 $this->cacheService->clearCachesOfRegisteredPageIds();
93 $this->cacheManagerMock->expects($this->at(0))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_2');
94 $this->cacheManagerMock->expects($this->at(1))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_15');
95 $this->cacheManagerMock->expects($this->at(2))->method(
'flushCachesInGroupByTag')->with(
'pages',
'pageId_8');
96 $this->cacheManagerMock->expects($this->exactly(3))->method(
'flushCachesInGroupByTag');
98 $this->cacheService->getPageIdStack()->push(8);
99 $this->cacheService->getPageIdStack()->push(15);
100 $this->cacheService->getPageIdStack()->push(15);
101 $this->cacheService->getPageIdStack()->push(2);
102 $this->cacheService->getPageIdStack()->push(2);
104 $this->cacheService->clearCachesOfRegisteredPageIds();
clearsCachesOfRegisteredPageIds()
clearPageCacheConvertsPageIdsToNumericArray()
clearPageCacheConvertsPageIdsToArray()
clearsCachesOfDuplicateRegisteredPageIdsOnlyOnce()
clearPageCacheDoesNotConvertPageIdsIfNoneAreSpecified()
clearPageCacheUsesCacheManagerToFlushCacheOfSpecifiedPages()