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

Protected Member Functions

 setUpMockFrontendOfBackend (\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend $backend)
 
- 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='')
 

Additional Inherited Members

- 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

Test case

Definition at line 21 of file Typo3DatabaseBackendTest.php.

Member Function Documentation

◆ setUpMockFrontendOfBackend()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\Typo3DatabaseBackendTest::setUpMockFrontendOfBackend ( \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend  $backend)
protected

Helper method to inject a mock frontend to backend instance

Parameters
\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend$backendCurrent backend instance
Returns
Mock frontend

Definition at line 29 of file Typo3DatabaseBackendTest.php.

References $GLOBALS, and TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().