Bug #20969 » 15417_01_test.diff
tests/t3lib/cache/backend/t3lib_cache_backend_dbbackendTest.php (working copy) | ||
---|---|---|
/**
|
||
* @test
|
||
* @author Christian Kuhn <lolli@schwarzbu.ch>
|
||
*/
|
||
public function hasReturnsTrueForEntryWithUnlimitedLifetime() {
|
||
$this->setUpBackend();
|
||
$mockCache = $this->getMock('t3lib_cache_frontend_AbstractFrontend', array(), array(), '', FALSE);
|
||
$mockCache->expects($this->any())->method('getIdentifier')->will($this->returnValue('UnitTestCache'));
|
||
$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() {
|