- $this->cacheService->_set('useCachingFramework', TRUE);
- $this->cacheService->_call('flushPageSectionCache');
- }
-
- /**
- * @test
- */
- public function flushPageSectionCacheFlushesCacheOfSpecifiedPageSectionsDirectlyIfCachingFrameworkIsDisabled() {
- $GLOBALS['TYPO3_DB']->expects($this->once())->method('cleanIntArray')->with(array(1,2,3))->will($this->returnValue(array(3,2,1)));
- $GLOBALS['TYPO3_DB']->expects($this->once())->method('exec_DELETEquery')->with(
- 'cache_pagesection',
- 'page_id IN (3,2,1)'
- );
-
- $this->cacheService->_set('useCachingFramework', FALSE);
- $this->cacheService->_call('flushPageSectionCache', array(1,2,3));
- }
-
- /**
- * test
- */
- public function flushPageSectionCacheCacheFlushesCacheOfAllPageSectionsDirectlyIfCachingFrameworkIsDisabled() {
- $GLOBALS['TYPO3_DB']->expects($this->once())->method('exec_TRUNCATEquery')->with('cache_pagesection');
-
- $this->cacheService->_set('useCachingFramework', FALSE);