Project

General

Profile

Bug #20969 » 15417_01_test_4.3.diff

Administrator Admin, 2010-08-10 21:53

View differences:

tests/t3lib/cache/backend/t3lib_cache_backend_dbbackendtestcase.php (working copy)
/**
* @test
* @author Christian Kuhn <lolli@schwarzbu.ch>
*/
public function hasReturnsTrueForEntryWithUnlimitedLifetime() {
$mockCache = $this->getMock('t3lib_cache_frontend_AbstractFrontend', array(), array(), '', FALSE);
$entryIdentifier = 'BackendDbTest';
$this->backend->setCache($mockCache);
$this->backend->set($entryIdentifier, 'data', array(), 0);
$GLOBALS['EXEC_TIME'] += 1;
$this->assertTrue($this->backend->has($entryIdentifier));
}
/**
* @test
* @author Ingo Renner <ingo@typo3.org>
*/
public function getReturnsFalseForEntryWithExceededLifetime() {
(4-4/4)