TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setCacheDirectoryThrowsExceptionOnNonWritableDirectory ()
 
 setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsAbsolutePathWithTrailingSlash ()
 
 setCacheDirectoryAllowsRelativePathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsRelativePathWithTrailingSlash ()
 
 setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash ()
 
 setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash ()
 
 getCacheDirectoryReturnsTheCurrentCacheDirectory ()
 
 aDedicatedCacheDirectoryIsUsedForCodeCaches ()
 
 setThrowsExceptionIfDataIsNotAString ()
 
 setReallySavesToTheSpecifiedDirectory ()
 
 setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ()
 
 setAlsoSavesSpecifiedTags ()
 
 setCacheDetectsAndLoadsAFrozenCache ()
 
 getReturnsContentOfTheCorrectCacheFile ()
 
 getReturnsFalseForExpiredEntries ()
 
 getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ()
 
 hasReturnsTrueIfAnEntryExists ()
 
 hasReturnsFalseForExpiredEntries ()
 
 hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ()
 
 removeReallyRemovesACacheEntry ()
 
 invalidEntryIdentifiers ()
 
 setThrowsExceptionForInvalidIdentifier ($identifier)
 
 getThrowsExceptionForInvalidIdentifier ($identifier)
 
 hasThrowsExceptionForInvalidIdentifier ($identifier)
 
 removeThrowsExceptionForInvalidIdentifier ($identifier)
 
 requireOnceThrowsExceptionForInvalidIdentifier ($identifier)
 
 requireOnceIncludesAndReturnsResultOfIncludedPhpFile ()
 
 requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ()
 
 findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ()
 
 findIdentifiersByTagDoesNotReturnExpiredEntries ()
 
 flushRemovesAllCacheEntries ()
 
 flushCreatesCacheDirectoryAgain ()
 
 flushByTagRemovesCacheEntriesWithSpecifiedTag ()
 
 collectGarbageRemovesExpiredCacheEntries ()
 
 flushUnfreezesTheCache ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the File cache backend

This file is a backport from FLOW3

Definition at line 26 of file FileBackendTest.php.

Member Function Documentation

◆ aDedicatedCacheDirectoryIsUsedForCodeCaches()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::aDedicatedCacheDirectoryIsUsedForCodeCaches ( )
Test:

Definition at line 171 of file FileBackendTest.php.

◆ collectGarbageRemovesExpiredCacheEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::collectGarbageRemovesExpiredCacheEntries ( )
Test:

Definition at line 682 of file FileBackendTest.php.

◆ findIdentifiersByTagDoesNotReturnExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::findIdentifiersByTagDoesNotReturnExpiredEntries ( )
Test:

Definition at line 605 of file FileBackendTest.php.

◆ findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 581 of file FileBackendTest.php.

◆ flushByTagRemovesCacheEntriesWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 667 of file FileBackendTest.php.

◆ flushCreatesCacheDirectoryAgain()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushCreatesCacheDirectoryAgain ( )
Test:

Definition at line 651 of file FileBackendTest.php.

◆ flushRemovesAllCacheEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushRemovesAllCacheEntries ( )
Test:

Definition at line 626 of file FileBackendTest.php.

◆ flushUnfreezesTheCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushUnfreezesTheCache ( )
Test:

Definition at line 707 of file FileBackendTest.php.

◆ getCacheDirectoryReturnsTheCurrentCacheDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getCacheDirectoryReturnsTheCurrentCacheDirectory ( )
Test:

Definition at line 156 of file FileBackendTest.php.

◆ getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 341 of file FileBackendTest.php.

◆ getReturnsContentOfTheCorrectCacheFile()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getReturnsContentOfTheCorrectCacheFile ( )
Test:

Definition at line 301 of file FileBackendTest.php.

◆ getReturnsFalseForExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getReturnsFalseForExpiredEntries ( )
Test:

Definition at line 325 of file FileBackendTest.php.

◆ getThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 476 of file FileBackendTest.php.

◆ hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 394 of file FileBackendTest.php.

◆ hasReturnsFalseForExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasReturnsFalseForExpiredEntries ( )
Test:

Definition at line 382 of file FileBackendTest.php.

◆ hasReturnsTrueIfAnEntryExists()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasReturnsTrueIfAnEntryExists ( )
Test:

Definition at line 361 of file FileBackendTest.php.

◆ hasThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 493 of file FileBackendTest.php.

◆ invalidEntryIdentifiers()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::invalidEntryIdentifiers ( )

Definition at line 436 of file FileBackendTest.php.

◆ removeReallyRemovesACacheEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::removeReallyRemovesACacheEntry ( )
Test:

Definition at line 414 of file FileBackendTest.php.

◆ removeThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::removeThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 505 of file FileBackendTest.php.

◆ requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ( )
Test:

Definition at line 558 of file FileBackendTest.php.

◆ requireOnceIncludesAndReturnsResultOfIncludedPhpFile()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceIncludesAndReturnsResultOfIncludedPhpFile ( )
Test:

Definition at line 537 of file FileBackendTest.php.

◆ requireOnceThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 522 of file FileBackendTest.php.

◆ setAlsoSavesSpecifiedTags()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setAlsoSavesSpecifiedTags ( )
Test:

Definition at line 249 of file FileBackendTest.php.

◆ setCacheDetectsAndLoadsAFrozenCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDetectsAndLoadsAFrozenCache ( )
Test:

Definition at line 272 of file FileBackendTest.php.

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsolutePathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsolutePathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativePathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativePathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativePathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativePathWithTrailingSlash ( )

◆ setCacheDirectoryThrowsExceptionOnNonWritableDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryThrowsExceptionOnNonWritableDirectory ( )
Test:

Definition at line 47 of file FileBackendTest.php.

◆ setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ( )
Test:

Definition at line 224 of file FileBackendTest.php.

◆ setReallySavesToTheSpecifiedDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setReallySavesToTheSpecifiedDirectory ( )
Test:

Definition at line 201 of file FileBackendTest.php.

◆ setThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 459 of file FileBackendTest.php.

◆ setThrowsExceptionIfDataIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setThrowsExceptionIfDataIsNotAString ( )
Test:

Definition at line 187 of file FileBackendTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setUp ( )
protected

Sets up this testcase

Returns
void

Definition at line 33 of file FileBackendTest.php.