/** * @test */ public function testCoreCleanCache() { $this->_fpc->save('fpc_old_data', 'fpc_old_id', array('fpc'), 1); sleep(2); $this->_cleanObserver->coreCleanCache(); $this->assertFalse($this->_fpc->remove('fpc_old_id')); }
/** * @test */ public function testCoreCleanCache() { $data = new \Lesti_Fpc_Model_Fpc_CacheItem('fpc_old_data', time(), 'text/html'); $this->_fpc->save($data, 'fpc_old_id', array('fpc'), 1); sleep(2); $this->_cleanObserver->coreCleanCache(); $this->assertFalse($this->_fpc->remove('fpc_old_id')); }