‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest:

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 (string $identifier)
 
 getThrowsExceptionForInvalidIdentifier (string $identifier)
 
 hasThrowsExceptionForInvalidIdentifier (string $identifier)
 
 removeThrowsExceptionForInvalidIdentifier (string $identifier)
 
 requireOnceThrowsExceptionForInvalidIdentifier (string $identifier)
 
 requireOnceIncludesAndReturnsResultOfIncludedPhpFile ()
 
 requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ()
 
 requireThrowsExceptionForInvalidIdentifier (string $identifier)
 
 requireIncludesAndReturnsResultOfIncludedPhpFile ()
 
 requireDoesNotCheckExpiryTimeIfBackendIsFrozen ()
 
 requireCanLoadSameEntryMultipleTimes ()
 
 findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ()
 
 findIdentifiersByTagDoesNotReturnExpiredEntries ()
 
 flushRemovesAllCacheEntries ()
 
 flushCreatesCacheDirectoryAgain ()
 
 flushByTagRemovesCacheEntriesWithSpecifiedTag ()
 
 collectGarbageRemovesExpiredCacheEntries ()
 
 flushUnfreezesTheCache ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $resetSingletonInstances = true
 

Detailed Description

Testcase for the File cache backend

Definition at line 34 of file FileBackendTest.php.

Member Function Documentation

◆ aDedicatedCacheDirectoryIsUsedForCodeCaches()

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

Definition at line 177 of file FileBackendTest.php.

◆ collectGarbageRemovesExpiredCacheEntries()

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

Definition at line 902 of file FileBackendTest.php.

◆ findIdentifiersByTagDoesNotReturnExpiredEntries()

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

Definition at line 808 of file FileBackendTest.php.

◆ findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag()

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

Definition at line 780 of file FileBackendTest.php.

◆ flushByTagRemovesCacheEntriesWithSpecifiedTag()

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

Definition at line 881 of file FileBackendTest.php.

◆ flushCreatesCacheDirectoryAgain()

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

Definition at line 862 of file FileBackendTest.php.

◆ flushRemovesAllCacheEntries()

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

Definition at line 833 of file FileBackendTest.php.

◆ flushUnfreezesTheCache()

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

Definition at line 935 of file FileBackendTest.php.

◆ getCacheDirectoryReturnsTheCurrentCacheDirectory()

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

Definition at line 158 of file FileBackendTest.php.

◆ getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

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

Definition at line 390 of file FileBackendTest.php.

◆ getReturnsContentOfTheCorrectCacheFile()

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

Definition at line 342 of file FileBackendTest.php.

◆ getReturnsFalseForExpiredEntries()

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

Definition at line 370 of file FileBackendTest.php.

◆ getThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier
Exceptions
Exception

Definition at line 553 of file FileBackendTest.php.

◆ hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

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

Definition at line 457 of file FileBackendTest.php.

◆ hasReturnsFalseForExpiredEntries()

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

Definition at line 438 of file FileBackendTest.php.

◆ hasReturnsTrueIfAnEntryExists()

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

Definition at line 414 of file FileBackendTest.php.

◆ hasThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier

Definition at line 576 of file FileBackendTest.php.

◆ invalidEntryIdentifiers()

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

Definition at line 504 of file FileBackendTest.php.

◆ removeReallyRemovesACacheEntry()

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

Definition at line 481 of file FileBackendTest.php.

◆ removeThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::removeThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier
Exceptions
Exception

Definition at line 595 of file FileBackendTest.php.

◆ requireCanLoadSameEntryMultipleTimes()

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

Definition at line 762 of file FileBackendTest.php.

◆ requireDoesNotCheckExpiryTimeIfBackendIsFrozen()

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

Definition at line 737 of file FileBackendTest.php.

◆ requireIncludesAndReturnsResultOfIncludedPhpFile()

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

Definition at line 714 of file FileBackendTest.php.

◆ requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen()

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

Definition at line 666 of file FileBackendTest.php.

◆ requireOnceIncludesAndReturnsResultOfIncludedPhpFile()

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

Definition at line 641 of file FileBackendTest.php.

◆ requireOnceThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier
Exceptions
Exception

Definition at line 619 of file FileBackendTest.php.

◆ requireThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier

Definition at line 694 of file FileBackendTest.php.

◆ setAlsoSavesSpecifiedTags()

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

◆ setCacheDetectsAndLoadsAFrozenCache()

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

Definition at line 306 of file FileBackendTest.php.

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash()

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

Definition at line 137 of file FileBackendTest.php.

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash()

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

Definition at line 147 of file FileBackendTest.php.

◆ setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash()

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

Definition at line 73 of file FileBackendTest.php.

◆ setCacheDirectoryAllowsAbsolutePathWithTrailingSlash()

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

Definition at line 83 of file FileBackendTest.php.

◆ 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:
Exceptions
Exception

Definition at line 54 of file FileBackendTest.php.

◆ setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier()

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

Definition at line 244 of file FileBackendTest.php.

◆ setReallySavesToTheSpecifiedDirectory()

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

Definition at line 217 of file FileBackendTest.php.

◆ setThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setThrowsExceptionForInvalidIdentifier ( string  $identifier)
Test:
‪@dataProvider invalidEntryIdentifiers
Parameters
string$identifier
Exceptions
Exception
InvalidDataException

Definition at line 529 of file FileBackendTest.php.

◆ setThrowsExceptionIfDataIsNotAString()

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

Definition at line 196 of file FileBackendTest.php.

◆ setUp()

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

Sets up this testcase

Exceptions

Definition at line 43 of file FileBackendTest.php.

Member Data Documentation

◆ $resetSingletonInstances

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::$resetSingletonInstances = true
protected

Definition at line 37 of file FileBackendTest.php.