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

Public Member Functions

 propertiesDataProvider ()
 
 getPropertiesReturnsMergedPropertiesAndRespectsNullValues (array $fileReferenceProperties, array $originalFileProperties, array $expectedMergedProperties)
 
 hasPropertyReturnsTrueForAllMergedPropertyKeys ($fileReferenceProperties, $originalFileProperties, $expectedMergedProperties)
 
 getPropertyReturnsAllMergedPropertyKeys ($fileReferenceProperties, $originalFileProperties, $expectedMergedProperties)
 
 getPropertyThrowsExceptionForNotAvailableProperty ($fileReferenceProperties, $originalFileProperties)
 
 getPropertyDoesNotThrowExceptionForPropertyOnlyAvailableInOriginalFile ($fileReferenceProperties, $originalFileProperties)
 
 getReferencePropertyThrowsExceptionForPropertyOnlyAvailableInOriginalFile ($fileReferenceProperties, $originalFileProperties)
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 prepareFixture (array $fileReferenceProperties, array $originalFileProperties)
 
- 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

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

Detailed Description

Testcase for the file class of the TYPO3 FAL

Definition at line 21 of file FileReferenceTest.php.

Member Function Documentation

getPropertiesReturnsMergedPropertiesAndRespectsNullValues ( array  $fileReferenceProperties,
array  $originalFileProperties,
array  $expectedMergedProperties 
)
Parameters
array$fileReferenceProperties
array$originalFileProperties
array$expectedMergedProperties
Test:
propertiesDataProvider

Definition at line 94 of file FileReferenceTest.php.

References FileReferenceTest\prepareFixture().

getPropertyDoesNotThrowExceptionForPropertyOnlyAvailableInOriginalFile (   $fileReferenceProperties,
  $originalFileProperties 
)
Test:
propertiesDataProvider
Parameters
array$fileReferenceProperties
array$originalFileProperties

Definition at line 154 of file FileReferenceTest.php.

References FileReferenceTest\prepareFixture().

getPropertyReturnsAllMergedPropertyKeys (   $fileReferenceProperties,
  $originalFileProperties,
  $expectedMergedProperties 
)
Parameters
array$fileReferenceProperties
array$originalFileProperties
array$expectedMergedProperties
Test:
propertiesDataProvider

Definition at line 123 of file FileReferenceTest.php.

References FileReferenceTest\prepareFixture().

getPropertyThrowsExceptionForNotAvailableProperty (   $fileReferenceProperties,
  $originalFileProperties 
)
Test:
propertiesDataProvider
Parameters
array$fileReferenceProperties
array$originalFileProperties

Definition at line 138 of file FileReferenceTest.php.

References BaseTestCase\getUniqueId(), and FileReferenceTest\prepareFixture().

getReferencePropertyThrowsExceptionForPropertyOnlyAvailableInOriginalFile (   $fileReferenceProperties,
  $originalFileProperties 
)
Test:
propertiesDataProvider
Parameters
array$fileReferenceProperties
array$originalFileProperties
array$expectedMergedProperties

Definition at line 168 of file FileReferenceTest.php.

References FileReferenceTest\prepareFixture().

hasPropertyReturnsTrueForAllMergedPropertyKeys (   $fileReferenceProperties,
  $originalFileProperties,
  $expectedMergedProperties 
)
Parameters
array$fileReferenceProperties
array$originalFileProperties
array$expectedMergedProperties
Test:
propertiesDataProvider

Definition at line 108 of file FileReferenceTest.php.

References FileReferenceTest\prepareFixture().

propertiesDataProvider ( )
Returns
array

Definition at line 62 of file FileReferenceTest.php.

setUp ( )
protected
tearDown ( )
protected

Definition at line 34 of file FileReferenceTest.php.

References GeneralUtility\resetSingletonInstances().

Member Data Documentation

$singletonInstances = []
protected

Definition at line 26 of file FileReferenceTest.php.