‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest:

Public Member Functions

 getPropertiesReturnsMergedPropertiesAndRespectsNullValues (array $fileReferenceProperties, array $originalFileProperties, array $expectedMergedProperties)
 
 hasPropertyReturnsTrueForAllMergedPropertyKeys (array $fileReferenceProperties, array $originalFileProperties, array $expectedMergedProperties)
 
 getPropertyReturnsAllMergedPropertyKeys (array $fileReferenceProperties, array $originalFileProperties, array $expectedMergedProperties)
 
 getPropertyThrowsExceptionForNotAvailableProperty (array $fileReferenceProperties, array $originalFileProperties)
 
 getPropertyDoesNotThrowExceptionForPropertyOnlyAvailableInOriginalFile (array $fileReferenceProperties, array $originalFileProperties)
 
 getReferencePropertyThrowsExceptionForPropertyOnlyAvailableInOriginalFile (array $fileReferenceProperties, array $originalFileProperties)
 
 getTitleReturnsEmptyStringWhenPropertyValueIsNull ()
 
 getAlternativeReturnsEmptyStringWhenPropertyValueIsNull ()
 
 getDescriptionReturnsEmptyStringWhenPropertyValueIsNull ()
 

Static Public Member Functions

static propertiesDataProvider ()
 

Protected Member Functions

 prepareFixture (array $fileReferenceProperties, array $originalFileProperties)
 

Detailed Description

Definition at line 27 of file FileReferenceTest.php.

Member Function Documentation

◆ getAlternativeReturnsEmptyStringWhenPropertyValueIsNull()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getAlternativeReturnsEmptyStringWhenPropertyValueIsNull ( )

◆ getDescriptionReturnsEmptyStringWhenPropertyValueIsNull()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getDescriptionReturnsEmptyStringWhenPropertyValueIsNull ( )

◆ getPropertiesReturnsMergedPropertiesAndRespectsNullValues()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getPropertiesReturnsMergedPropertiesAndRespectsNullValues ( array  $fileReferenceProperties,
array  $originalFileProperties,
array  $expectedMergedProperties 
)
Test:
‪@dataProvider propertiesDataProvider

Definition at line 72 of file FileReferenceTest.php.

References TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\prepareFixture().

◆ getPropertyDoesNotThrowExceptionForPropertyOnlyAvailableInOriginalFile()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getPropertyDoesNotThrowExceptionForPropertyOnlyAvailableInOriginalFile ( array  $fileReferenceProperties,
array  $originalFileProperties 
)
Test:
‪@dataProvider propertiesDataProvider

Definition at line 120 of file FileReferenceTest.php.

References TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\prepareFixture().

◆ getPropertyReturnsAllMergedPropertyKeys()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getPropertyReturnsAllMergedPropertyKeys ( array  $fileReferenceProperties,
array  $originalFileProperties,
array  $expectedMergedProperties 
)
Test:
‪@dataProvider propertiesDataProvider

Definition at line 95 of file FileReferenceTest.php.

References TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\prepareFixture().

◆ getPropertyThrowsExceptionForNotAvailableProperty()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getPropertyThrowsExceptionForNotAvailableProperty ( array  $fileReferenceProperties,
array  $originalFileProperties 
)

◆ getReferencePropertyThrowsExceptionForPropertyOnlyAvailableInOriginalFile()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getReferencePropertyThrowsExceptionForPropertyOnlyAvailableInOriginalFile ( array  $fileReferenceProperties,
array  $originalFileProperties 
)
Test:
‪@dataProvider propertiesDataProvider

Definition at line 132 of file FileReferenceTest.php.

References TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\prepareFixture().

◆ getTitleReturnsEmptyStringWhenPropertyValueIsNull()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::getTitleReturnsEmptyStringWhenPropertyValueIsNull ( )

◆ hasPropertyReturnsTrueForAllMergedPropertyKeys()

TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::hasPropertyReturnsTrueForAllMergedPropertyKeys ( array  $fileReferenceProperties,
array  $originalFileProperties,
array  $expectedMergedProperties 
)
Test:
‪@dataProvider propertiesDataProvider

Definition at line 83 of file FileReferenceTest.php.

References TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest\prepareFixture().

◆ prepareFixture()

◆ propertiesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Resource\FileReferenceTest::propertiesDataProvider ( )
static

Definition at line 43 of file FileReferenceTest.php.