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

Public Member Functions

 standardSingletonIsRegistered ()
 

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, $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 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

This test case is used in test suites to check for healthy environments after other tests were run.

This test is usually executed as the very last file in a suite and should fail if some other test before destroys the environment with invalid mocking or backups.

Definition at line 25 of file IntegrityTest.php.

Member Function Documentation

◆ standardSingletonIsRegistered()

TYPO3\CMS\Core\Tests\Integrity\IntegrityTest::standardSingletonIsRegistered ( )

This test fails if some test before called ::purgeInstances() without a proper backup via ::getSingletonInstances() and a reconstitution via ::resetSingletonInstances().

The test for CacheManager should never fail since this object is already instantiated during bootstrap and must always be there.

Test:

Definition at line 38 of file IntegrityTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\getSingletonInstances().