TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DriverRegistryTest Class Reference
Inheritance diagram for DriverRegistryTest:
UnitTestCase BaseTestCase

Public Member Functions

 registeredDriverClassesCanBeRetrieved ()
 
 registerDriverClassThrowsExceptionIfClassDoesNotExist ()
 
 registerDriverClassThrowsExceptionIfShortnameIsAlreadyTakenByAnotherDriverClass ()
 
 getDriverClassThrowsExceptionIfClassIsNotRegistered ()
 
 getDriverClassAcceptsClassNameIfClassIsRegistered ()
 
 driverRegistryIsInitializedWithPreconfiguredDrivers ()
 
 driverExistsReturnsTrueForAllExistingDrivers ()
 
 driverExistsReturnsFalseIfDriverDoesNotExist ()
 

Protected Member Functions

 setUp ()
 
 initializeSubject ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from 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,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $subject
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the FAL driver registry.

Definition at line 20 of file DriverRegistryTest.php.

Member Function Documentation

driverExistsReturnsFalseIfDriverDoesNotExist ( )
Test:

Definition at line 127 of file DriverRegistryTest.php.

References $GLOBALS, and DriverRegistryTest\initializeSubject().

driverExistsReturnsTrueForAllExistingDrivers ( )
driverRegistryIsInitializedWithPreconfiguredDrivers ( )
getDriverClassAcceptsClassNameIfClassIsRegistered ( )
Test:

Definition at line 84 of file DriverRegistryTest.php.

getDriverClassThrowsExceptionIfClassIsNotRegistered ( )
Test:

Definition at line 74 of file DriverRegistryTest.php.

References BaseTestCase\getUniqueId().

registerDriverClassThrowsExceptionIfClassDoesNotExist ( )
Test:

Definition at line 51 of file DriverRegistryTest.php.

References BaseTestCase\getUniqueId().

registerDriverClassThrowsExceptionIfShortnameIsAlreadyTakenByAnotherDriverClass ( )
Test:

Definition at line 61 of file DriverRegistryTest.php.

registeredDriverClassesCanBeRetrieved ( )
Test:

Definition at line 40 of file DriverRegistryTest.php.

setUp ( )
protected

Definition at line 27 of file DriverRegistryTest.php.

References DriverRegistryTest\initializeSubject().

Member Data Documentation

$subject
protected

Definition at line 25 of file DriverRegistryTest.php.