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

Public Member Functions

 getThrowsExceptionForInvalidNamespacesUsingNoNamespace ()
 
 getThrowsExceptionForInvalidNamespacesUsingTooShortNamespace ()
 
 getRetrievesTheCorrectEntry ()
 
 getLazyLoadsEntriesOfOneNamespace ()
 
 getReturnsTheDefaultValueIfTheRequestedKeyWasNotFound ()
 
 setThrowsAnExceptionOnEmptyNamespace ()
 
 setThrowsAnExceptionOnWrongNamespace ()
 
 setAllowsValidNamespaces ()
 
 setReallySavesTheGivenValueToTheDatabase ()
 
 setUpdatesExistingKeys ()
 
 removeThrowsAnExceptionOnWrongNamespace ()
 
 removeReallyRemovesTheEntryFromTheDatabase ()
 
 removeUnsetsValueFromTheInternalEntriesCache ()
 
 removeAllByNamespaceThrowsAnExceptionOnWrongNamespace ()
 
 removeAllByNamespaceReallyRemovesAllEntriesOfTheSpecifiedNamespaceFromTheDatabase ()
 
 removeAllByNamespaceUnsetsValuesOfTheSpecifiedNamespaceFromTheInternalEntriesCache ()
 

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='')
 

Protected Attributes

 $registry
 
- 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 TYPO3

Definition at line 20 of file RegistryTest.php.

Member Function Documentation

◆ getLazyLoadsEntriesOfOneNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::getLazyLoadsEntriesOfOneNamespace ( )
Test:

Definition at line 71 of file RegistryTest.php.

References $GLOBALS.

◆ getRetrievesTheCorrectEntry()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::getRetrievesTheCorrectEntry ( )
Test:

Definition at line 58 of file RegistryTest.php.

References $GLOBALS.

◆ getReturnsTheDefaultValueIfTheRequestedKeyWasNotFound()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::getReturnsTheDefaultValueIfTheRequestedKeyWasNotFound ( )
Test:

Definition at line 88 of file RegistryTest.php.

References $GLOBALS.

◆ getThrowsExceptionForInvalidNamespacesUsingNoNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::getThrowsExceptionForInvalidNamespacesUsingNoNamespace ( )
Test:

Definition at line 41 of file RegistryTest.php.

◆ getThrowsExceptionForInvalidNamespacesUsingTooShortNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::getThrowsExceptionForInvalidNamespacesUsingTooShortNamespace ( )
Test:

Definition at line 50 of file RegistryTest.php.

◆ removeAllByNamespaceReallyRemovesAllEntriesOfTheSpecifiedNamespaceFromTheDatabase()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeAllByNamespaceReallyRemovesAllEntriesOfTheSpecifiedNamespaceFromTheDatabase ( )
Test:

Definition at line 201 of file RegistryTest.php.

References $GLOBALS.

◆ removeAllByNamespaceThrowsAnExceptionOnWrongNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeAllByNamespaceThrowsAnExceptionOnWrongNamespace ( )
Test:

Definition at line 193 of file RegistryTest.php.

◆ removeAllByNamespaceUnsetsValuesOfTheSpecifiedNamespaceFromTheInternalEntriesCache()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeAllByNamespaceUnsetsValuesOfTheSpecifiedNamespaceFromTheInternalEntriesCache ( )

◆ removeReallyRemovesTheEntryFromTheDatabase()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeReallyRemovesTheEntryFromTheDatabase ( )
Test:

Definition at line 168 of file RegistryTest.php.

References $GLOBALS.

◆ removeThrowsAnExceptionOnWrongNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeThrowsAnExceptionOnWrongNamespace ( )
Test:

Definition at line 160 of file RegistryTest.php.

◆ removeUnsetsValueFromTheInternalEntriesCache()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::removeUnsetsValueFromTheInternalEntriesCache ( )

◆ setAllowsValidNamespaces()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setAllowsValidNamespaces ( )

◆ setReallySavesTheGivenValueToTheDatabase()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setReallySavesTheGivenValueToTheDatabase ( )

◆ setThrowsAnExceptionOnEmptyNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setThrowsAnExceptionOnEmptyNamespace ( )
Test:

Definition at line 101 of file RegistryTest.php.

◆ setThrowsAnExceptionOnWrongNamespace()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setThrowsAnExceptionOnWrongNamespace ( )
Test:

Definition at line 110 of file RegistryTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setUp ( )
protected

Sets up this testcase

Definition at line 30 of file RegistryTest.php.

References $GLOBALS.

◆ setUpdatesExistingKeys()

TYPO3\CMS\Core\Tests\Unit\RegistryTest::setUpdatesExistingKeys ( )

Member Data Documentation

◆ $registry