TYPO3 CMS  TYPO3_6-2
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

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

Protected Attributes

 $registry
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for TYPO3

Author
Bastian Waidelich basti.nosp@m.an@t.nosp@m.ypo3..nosp@m.org

Definition at line 22 of file RegistryTest.php.

Member Function Documentation

◆ getLazyLoadsEntriesOfOneNamespace()

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

Definition at line 69 of file RegistryTest.php.

References $GLOBALS.

◆ getRetrievesTheCorrectEntry()

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

Definition at line 57 of file RegistryTest.php.

References $GLOBALS.

◆ getReturnsTheDefaultValueIfTheRequestedKeyWasNotFound()

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

Definition at line 85 of file RegistryTest.php.

References $GLOBALS.

◆ getThrowsExceptionForInvalidNamespacesUsingNoNamespace()

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

Definition at line 42 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 188 of file RegistryTest.php.

References $GLOBALS.

◆ removeAllByNamespaceThrowsAnExceptionOnWrongNamespace()

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

Definition at line 181 of file RegistryTest.php.

◆ removeAllByNamespaceUnsetsValuesOfTheSpecifiedNamespaceFromTheInternalEntriesCache()

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

◆ removeReallyRemovesTheEntryFromTheDatabase()

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

Definition at line 158 of file RegistryTest.php.

References $GLOBALS.

◆ removeThrowsAnExceptionOnWrongNamespace()

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

Definition at line 151 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 97 of file RegistryTest.php.

◆ setThrowsAnExceptionOnWrongNamespace()

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

Definition at line 105 of file RegistryTest.php.

◆ setUp()

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

Sets up this testcase

Definition at line 32 of file RegistryTest.php.

References $GLOBALS.

◆ setUpdatesExistingKeys()

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

Member Data Documentation

◆ $registry