TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Resource\AbstractFileTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\AbstractFileTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 storageIsNotAskedForMimeTypeForPersistedRecord ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

Testcase for the abstract file class of the TYPO3 FAL

Author
Steffen Müller typo3.nosp@m.@t3n.nosp@m.ode.c.nosp@m.om

Definition at line 23 of file AbstractFileTest.php.

Member Function Documentation

◆ 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.

Test:

Definition at line 57 of file AbstractFileTest.php.