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

Public Member Functions

 getParentFolderGetsParentFolderFromStorage ()
 storageIsNotAskedForMimeTypeForPersistedRecord ()

Detailed Description

Testcase for the abstract file class of the TYPO3 FAL

Definition at line 29 of file AbstractFileTest.php.

Member Function Documentation

◆ getParentFolderGetsParentFolderFromStorage()

TYPO3\CMS\Core\Tests\Unit\Resource\AbstractFileTest::getParentFolderGetsParentFolderFromStorage ( )

Definition at line 34 of file AbstractFileTest.php.

◆ storageIsNotAskedForMimeTypeForPersistedRecord()

TYPO3\CMS\Core\Tests\Unit\Resource\AbstractFileTest::storageIsNotAskedForMimeTypeForPersistedRecord ( )

This test accounts for an inconsistency in the Storage–Driver interface of FAL: The driver returns the MIME type in a field "mimetype", while the file object and the database table use mime_type. The test is placed in the test case for AbstractFile because the broken functionality resides there, though it is only triggered when constructing a File instance with an index record.


Definition at line 65 of file AbstractFileTest.php.