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

Public Member Functions

 initializeObjectThrowsNoExceptionIfGivenDatabaseWasSuccessfullySelected ()
 
 setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNotAnInteger ()
 
 setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNegative ()
 
 setCompressionThrowsExceptionIfCompressionParameterIsNotOfTypeBoolean ()
 
 setCompressionLevelThrowsExceptionIfCompressionLevelIsNotInteger ()
 
 setCompressionLevelThrowsExceptionIfCompressionLevelIsNotBetweenMinusOneAndNine ()
 
 setThrowsExceptionIfIdentifierIsNotAString ()
 
 setThrowsExceptionIfDataIsNotAString ()
 
 setThrowsExceptionIfLifetimeIsNegative ()
 
 setThrowsExceptionIfLifetimeIsNotNullOrAnInteger ()
 
 setStoresEntriesInSelectedDatabase ()
 
 setSavesStringDataTypeForIdentifierToDataEntry ()
 
 setSavesEntryWithDefaultLifeTime ()
 
 setSavesEntryWithSpecifiedLifeTime ()
 
 setSavesEntryWithUnlimitedLifeTime ()
 
 setOverwritesExistingEntryWithNewData ()
 
 setOverwritesExistingEntryWithSpecifiedLifetime ()
 
 setOverwritesExistingEntryWithNewDefaultLifetime ()
 
 setOverwritesExistingEntryWithNewUnlimitedLifetime ()
 
 setSavesSetDataTypeForIdentifierToTagsSet ()
 
 setSavesSpecifiedTagsInIdentifierToTagsSet ()
 
 setRemovesAllPreviouslySetTagsFromIdentifierToTagsSet ()
 
 setRemovesMultiplePreviouslySetTagsFromIdentifierToTagsSet ()
 
 setSavesSetDataTypeForTagToIdentifiersSet ()
 
 setSavesIdentifierInTagToIdentifiersSetOfSpecifiedTag ()
 
 setAppendsSecondIdentifierInTagToIdentifiersEntry ()
 
 setRemovesIdentifierFromTagToIdentifiersEntryIfTagIsOmittedOnConsecutiveSet ()
 
 setAddsIdentifierInTagToIdentifiersEntryIfTagIsAddedOnConsecutiveSet ()
 
 setSavesCompressedDataWithEnabledCompression ()
 
 setSavesPlaintextDataWithEnabledCompressionAndCompressionLevel0 ()
 
 hasThrowsExceptionIfIdentifierIsNotAString ()
 
 hasReturnsFalseForNotExistingEntry ()
 
 hasReturnsTrueForPreviouslySetEntry ()
 
 getThrowsExceptionIfIdentifierIsNotAString ()
 
 getReturnsPreviouslyCompressedSetEntry ()
 
 getReturnsPreviouslySetEntry ()
 
 removeThrowsExceptionIfIdentifierIsNotAString ()
 
 removeReturnsFalseIfNoEntryWasDeleted ()
 
 removeReturnsTrueIfAnEntryWasDeleted ()
 
 removeDeletesEntryFromCache ()
 
 removeDeletesIdentifierToTagEntry ()
 
 removeDeletesIdentifierFromTagToIdentifiersSet ()
 
 removeDeletesIdentifierFromTagToIdentifiersSetWithMultipleEntries ()
 
 findIdentifiersByTagThrowsExceptionIfTagIsNotAString ()
 
 findIdentifiersByTagReturnsEmptyArrayForNotExistingTag ()
 
 findIdentifiersByTagReturnsAllIdentifiersTagedWithSpecifiedTag ()
 
 flushRemovesAllEntriesFromCache ()
 
 flushByTagThrowsExceptionIfTagIsNotAString ()
 
 flushByTagRemovesEntriesTaggedWithSpecifiedTag ()
 
 flushByTagRemovesTemporarySet ()
 
 flushByTagRemovesIdentifierToTagsSetOfEntryTaggedWithGivenTag ()
 
 flushByTagDoesNotRemoveIdentifierToTagsSetOfUnrelatedEntry ()
 
 flushByTagRemovesTagToIdentifiersSetOfGivenTag ()
 
 flushByTagRemovesIdentifiersTaggedWithGivenTagFromTagToIdentifiersSets ()
 
 collectGarbageDoesNotRemoveNotExpiredIdentifierToDataEntry ()
 
 collectGarbageRemovesLeftOverIdentifierToTagsSet ()
 
 collectGarbageRemovesExpiredIdentifierFromTagsToIdentifierSet ()
 

Protected Member Functions

 setUp ()
 
 setUpBackend (array $backendOptions=[])
 
 setUpRedis ()
 
 tearDown ()
 
- 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='')
 

Protected Attributes

 $backend = null
 
 $redis = null
 
- 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 cache to redis backend

This class has functional tests as well as implementation tests:

  • The functional tests make API calls to the backend and check expected behaviour
  • The implementation tests make additional calls with an own redis instance to check stored data structures in the redis server, which can not be checked by functional tests alone. Those tests will fail if any changes to the internal data structure are done.

Warning: The unit tests use and flush redis database numbers 0 and 1 on the redis host specified by environment variable typo3RedisHost

Definition at line 33 of file RedisBackendTest.php.

Member Function Documentation

◆ collectGarbageDoesNotRemoveNotExpiredIdentifierToDataEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::collectGarbageDoesNotRemoveNotExpiredIdentifierToDataEntry ( )

◆ collectGarbageRemovesExpiredIdentifierFromTagsToIdentifierSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::collectGarbageRemovesExpiredIdentifierFromTagsToIdentifierSet ( )

◆ collectGarbageRemovesLeftOverIdentifierToTagsSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::collectGarbageRemovesLeftOverIdentifierToTagsSet ( )

◆ findIdentifiersByTagReturnsAllIdentifiersTagedWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::findIdentifiersByTagReturnsAllIdentifiersTagedWithSpecifiedTag ( )

◆ findIdentifiersByTagReturnsEmptyArrayForNotExistingTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::findIdentifiersByTagReturnsEmptyArrayForNotExistingTag ( )

◆ findIdentifiersByTagThrowsExceptionIfTagIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::findIdentifiersByTagThrowsExceptionIfTagIsNotAString ( )

◆ flushByTagDoesNotRemoveIdentifierToTagsSetOfUnrelatedEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagDoesNotRemoveIdentifierToTagsSetOfUnrelatedEntry ( )

◆ flushByTagRemovesEntriesTaggedWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagRemovesEntriesTaggedWithSpecifiedTag ( )

◆ flushByTagRemovesIdentifiersTaggedWithGivenTagFromTagToIdentifiersSets()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagRemovesIdentifiersTaggedWithGivenTagFromTagToIdentifiersSets ( )

◆ flushByTagRemovesIdentifierToTagsSetOfEntryTaggedWithGivenTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagRemovesIdentifierToTagsSetOfEntryTaggedWithGivenTag ( )

◆ flushByTagRemovesTagToIdentifiersSetOfGivenTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagRemovesTagToIdentifiersSetOfGivenTag ( )

◆ flushByTagRemovesTemporarySet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagRemovesTemporarySet ( )

◆ flushByTagThrowsExceptionIfTagIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushByTagThrowsExceptionIfTagIsNotAString ( )

◆ flushRemovesAllEntriesFromCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::flushRemovesAllEntriesFromCache ( )

◆ getReturnsPreviouslyCompressedSetEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::getReturnsPreviouslyCompressedSetEntry ( )

◆ getReturnsPreviouslySetEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::getReturnsPreviouslySetEntry ( )

◆ getThrowsExceptionIfIdentifierIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::getThrowsExceptionIfIdentifierIsNotAString ( )

◆ hasReturnsFalseForNotExistingEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::hasReturnsFalseForNotExistingEntry ( )

◆ hasReturnsTrueForPreviouslySetEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::hasReturnsTrueForPreviouslySetEntry ( )

◆ hasThrowsExceptionIfIdentifierIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::hasThrowsExceptionIfIdentifierIsNotAString ( )

◆ initializeObjectThrowsNoExceptionIfGivenDatabaseWasSuccessfullySelected()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::initializeObjectThrowsNoExceptionIfGivenDatabaseWasSuccessfullySelected ( )

◆ removeDeletesEntryFromCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeDeletesEntryFromCache ( )

◆ removeDeletesIdentifierFromTagToIdentifiersSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeDeletesIdentifierFromTagToIdentifiersSet ( )

◆ removeDeletesIdentifierFromTagToIdentifiersSetWithMultipleEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeDeletesIdentifierFromTagToIdentifiersSetWithMultipleEntries ( )

◆ removeDeletesIdentifierToTagEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeDeletesIdentifierToTagEntry ( )

◆ removeReturnsFalseIfNoEntryWasDeleted()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeReturnsFalseIfNoEntryWasDeleted ( )

◆ removeReturnsTrueIfAnEntryWasDeleted()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeReturnsTrueIfAnEntryWasDeleted ( )

◆ removeThrowsExceptionIfIdentifierIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::removeThrowsExceptionIfIdentifierIsNotAString ( )

◆ setAddsIdentifierInTagToIdentifiersEntryIfTagIsAddedOnConsecutiveSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setAddsIdentifierInTagToIdentifiersEntryIfTagIsAddedOnConsecutiveSet ( )

◆ setAppendsSecondIdentifierInTagToIdentifiersEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setAppendsSecondIdentifierInTagToIdentifiersEntry ( )

◆ setCompressionLevelThrowsExceptionIfCompressionLevelIsNotBetweenMinusOneAndNine()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setCompressionLevelThrowsExceptionIfCompressionLevelIsNotBetweenMinusOneAndNine ( )

◆ setCompressionLevelThrowsExceptionIfCompressionLevelIsNotInteger()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setCompressionLevelThrowsExceptionIfCompressionLevelIsNotInteger ( )

◆ setCompressionThrowsExceptionIfCompressionParameterIsNotOfTypeBoolean()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setCompressionThrowsExceptionIfCompressionParameterIsNotOfTypeBoolean ( )

◆ setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNegative()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNegative ( )

◆ setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNotAnInteger()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNotAnInteger ( )

◆ setOverwritesExistingEntryWithNewData()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setOverwritesExistingEntryWithNewData ( )

◆ setOverwritesExistingEntryWithNewDefaultLifetime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setOverwritesExistingEntryWithNewDefaultLifetime ( )

◆ setOverwritesExistingEntryWithNewUnlimitedLifetime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setOverwritesExistingEntryWithNewUnlimitedLifetime ( )

◆ setOverwritesExistingEntryWithSpecifiedLifetime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setOverwritesExistingEntryWithSpecifiedLifetime ( )

◆ setRemovesAllPreviouslySetTagsFromIdentifierToTagsSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setRemovesAllPreviouslySetTagsFromIdentifierToTagsSet ( )

◆ setRemovesIdentifierFromTagToIdentifiersEntryIfTagIsOmittedOnConsecutiveSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setRemovesIdentifierFromTagToIdentifiersEntryIfTagIsOmittedOnConsecutiveSet ( )

◆ setRemovesMultiplePreviouslySetTagsFromIdentifierToTagsSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setRemovesMultiplePreviouslySetTagsFromIdentifierToTagsSet ( )

◆ setSavesCompressedDataWithEnabledCompression()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesCompressedDataWithEnabledCompression ( )

◆ setSavesEntryWithDefaultLifeTime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesEntryWithDefaultLifeTime ( )

◆ setSavesEntryWithSpecifiedLifeTime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesEntryWithSpecifiedLifeTime ( )

◆ setSavesEntryWithUnlimitedLifeTime()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesEntryWithUnlimitedLifeTime ( )

◆ setSavesIdentifierInTagToIdentifiersSetOfSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesIdentifierInTagToIdentifiersSetOfSpecifiedTag ( )

◆ setSavesPlaintextDataWithEnabledCompressionAndCompressionLevel0()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesPlaintextDataWithEnabledCompressionAndCompressionLevel0 ( )

◆ setSavesSetDataTypeForIdentifierToTagsSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesSetDataTypeForIdentifierToTagsSet ( )

◆ setSavesSetDataTypeForTagToIdentifiersSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesSetDataTypeForTagToIdentifiersSet ( )

◆ setSavesSpecifiedTagsInIdentifierToTagsSet()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesSpecifiedTagsInIdentifierToTagsSet ( )

◆ setSavesStringDataTypeForIdentifierToDataEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setSavesStringDataTypeForIdentifierToDataEntry ( )

◆ setStoresEntriesInSelectedDatabase()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setStoresEntriesInSelectedDatabase ( )

◆ setThrowsExceptionIfDataIsNotAString()

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

◆ setThrowsExceptionIfIdentifierIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setThrowsExceptionIfIdentifierIsNotAString ( )

◆ setThrowsExceptionIfLifetimeIsNegative()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setThrowsExceptionIfLifetimeIsNegative ( )

◆ setThrowsExceptionIfLifetimeIsNotNullOrAnInteger()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setThrowsExceptionIfLifetimeIsNotNullOrAnInteger ( )

◆ setUp()

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

Set up this testcase

Definition at line 52 of file RedisBackendTest.php.

◆ setUpBackend()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setUpBackend ( array  $backendOptions = [])
protected

Sets up the redis backend used for testing

Parameters
array$backendOptionsOptions for the redis backend

Definition at line 70 of file RedisBackendTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageDoesNotRemoveNotExpiredIdentifierToDataEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageRemovesExpiredIdentifierFromTagsToIdentifierSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageRemovesLeftOverIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\findIdentifiersByTagReturnsAllIdentifiersTagedWithSpecifiedTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\findIdentifiersByTagReturnsEmptyArrayForNotExistingTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\findIdentifiersByTagThrowsExceptionIfTagIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagDoesNotRemoveIdentifierToTagsSetOfUnrelatedEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesEntriesTaggedWithSpecifiedTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesIdentifiersTaggedWithGivenTagFromTagToIdentifiersSets(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesIdentifierToTagsSetOfEntryTaggedWithGivenTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesTagToIdentifiersSetOfGivenTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesTemporarySet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagThrowsExceptionIfTagIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushRemovesAllEntriesFromCache(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\getReturnsPreviouslyCompressedSetEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\getReturnsPreviouslySetEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\getThrowsExceptionIfIdentifierIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\hasReturnsFalseForNotExistingEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\hasReturnsTrueForPreviouslySetEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\hasThrowsExceptionIfIdentifierIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\initializeObjectThrowsNoExceptionIfGivenDatabaseWasSuccessfullySelected(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesEntryFromCache(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierFromTagToIdentifiersSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierFromTagToIdentifiersSetWithMultipleEntries(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierToTagEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeReturnsFalseIfNoEntryWasDeleted(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeReturnsTrueIfAnEntryWasDeleted(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeThrowsExceptionIfIdentifierIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setAddsIdentifierInTagToIdentifiersEntryIfTagIsAddedOnConsecutiveSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setAppendsSecondIdentifierInTagToIdentifiersEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setCompressionLevelThrowsExceptionIfCompressionLevelIsNotBetweenMinusOneAndNine(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setCompressionLevelThrowsExceptionIfCompressionLevelIsNotInteger(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setCompressionThrowsExceptionIfCompressionParameterIsNotOfTypeBoolean(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNegative(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setDatabaseThrowsExceptionIfGivenDatabaseNumberIsNotAnInteger(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithNewData(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithNewDefaultLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithNewUnlimitedLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithSpecifiedLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesAllPreviouslySetTagsFromIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesIdentifierFromTagToIdentifiersEntryIfTagIsOmittedOnConsecutiveSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesMultiplePreviouslySetTagsFromIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesCompressedDataWithEnabledCompression(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithDefaultLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithSpecifiedLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithUnlimitedLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesIdentifierInTagToIdentifiersSetOfSpecifiedTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesPlaintextDataWithEnabledCompressionAndCompressionLevel0(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSetDataTypeForIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSetDataTypeForTagToIdentifiersSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSpecifiedTagsInIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesStringDataTypeForIdentifierToDataEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setStoresEntriesInSelectedDatabase(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setThrowsExceptionIfDataIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setThrowsExceptionIfIdentifierIsNotAString(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setThrowsExceptionIfLifetimeIsNegative(), and TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setThrowsExceptionIfLifetimeIsNotNullOrAnInteger().

◆ setUpRedis()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::setUpRedis ( )
protected

Sets up an own redis instance for implementation tests

Definition at line 87 of file RedisBackendTest.php.

Referenced by TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageDoesNotRemoveNotExpiredIdentifierToDataEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageRemovesExpiredIdentifierFromTagsToIdentifierSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\collectGarbageRemovesLeftOverIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagDoesNotRemoveIdentifierToTagsSetOfUnrelatedEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesIdentifiersTaggedWithGivenTagFromTagToIdentifiersSets(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesIdentifierToTagsSetOfEntryTaggedWithGivenTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesTagToIdentifiersSetOfGivenTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushByTagRemovesTemporarySet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\flushRemovesAllEntriesFromCache(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierFromTagToIdentifiersSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierFromTagToIdentifiersSetWithMultipleEntries(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\removeDeletesIdentifierToTagEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setAddsIdentifierInTagToIdentifiersEntryIfTagIsAddedOnConsecutiveSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setAppendsSecondIdentifierInTagToIdentifiersEntry(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithNewDefaultLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithNewUnlimitedLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setOverwritesExistingEntryWithSpecifiedLifetime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesAllPreviouslySetTagsFromIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesIdentifierFromTagToIdentifiersEntryIfTagIsOmittedOnConsecutiveSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setRemovesMultiplePreviouslySetTagsFromIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesCompressedDataWithEnabledCompression(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithDefaultLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithSpecifiedLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesEntryWithUnlimitedLifeTime(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesIdentifierInTagToIdentifiersSetOfSpecifiedTag(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesPlaintextDataWithEnabledCompressionAndCompressionLevel0(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSetDataTypeForIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSetDataTypeForTagToIdentifiersSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesSpecifiedTagsInIdentifierToTagsSet(), TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setSavesStringDataTypeForIdentifierToDataEntry(), and TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest\setStoresEntriesInSelectedDatabase().

◆ tearDown()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::tearDown ( )
protected

Tear down this testcase

Definition at line 102 of file RedisBackendTest.php.

Member Data Documentation

◆ $backend

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::$backend = null
protected

Definition at line 40 of file RedisBackendTest.php.

◆ $redis

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\RedisBackendTest::$redis = null
protected

Definition at line 47 of file RedisBackendTest.php.