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

Public Member Functions

 commonPropertiesAreAvailableWithOwnGetters ()
 
 fileIndexStatusIsTrueIfUidIsSet ()
 
 updatePropertiesUpdatesFileProperties ()
 
 updatePropertiesLeavesPropertiesUntouchedIfNotSetInNewProperties ()
 
 updatePropertiesDiscardsUidIfAlreadySet ()
 
 updatePropertiesRecordsNamesOfChangedProperties ()
 
 updatePropertiesDoesNotRecordPropertyNameIfSameValueIsProvided ()
 
 updatePropertiesMarksPropertyAsChangedOnlyOnce ()
 
 updatePropertiesReloadsStorageObjectIfStorageChanges ()
 
 copyToCallsCopyOperationOnTargetFolderStorage ()
 
 moveToCallsMoveOperationOnTargetFolderStorage ()
 
 filenameExtensionDataProvider ()
 
 getNameWithoutExtensionReturnsCorrectName ($originalFilename, $expectedBasename)
 
 getExtensionReturnsCorrectExtension ($originalFilename, $expectedBasename, $expectedExtension)
 
 hasPropertyReturnsTrueFilePropertyExists ()
 
 hasPropertyReturnsTrueIfMetadataPropertyExists ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 prepareFixture ()
 
- 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 = []
 
 $storageMock
 
- 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 22 of file FileTest.php.

Member Function Documentation

commonPropertiesAreAvailableWithOwnGetters ( )
Test:

Definition at line 63 of file FileTest.php.

References FileTest\$storageMock, and BaseTestCase\getUniqueId().

copyToCallsCopyOperationOnTargetFolderStorage ( )
Test:

Definition at line 178 of file FileTest.php.

fileIndexStatusIsTrueIfUidIsSet ( )

Tests if a file is seen as indexed if the record has a uid

Test:

Definition at line 81 of file FileTest.php.

filenameExtensionDataProvider ( )

Definition at line 201 of file FileTest.php.

getExtensionReturnsCorrectExtension (   $originalFilename,
  $expectedBasename,
  $expectedExtension 
)
Test:
filenameExtensionDataProvider

Definition at line 230 of file FileTest.php.

getNameWithoutExtensionReturnsCorrectName (   $originalFilename,
  $expectedBasename 
)
Test:
filenameExtensionDataProvider

Definition at line 216 of file FileTest.php.

hasPropertyReturnsTrueFilePropertyExists ( )
Test:

Definition at line 242 of file FileTest.php.

hasPropertyReturnsTrueIfMetadataPropertyExists ( )
Test:

Definition at line 251 of file FileTest.php.

References BaseTestCase\getAccessibleMock().

moveToCallsMoveOperationOnTargetFolderStorage ( )
Test:

Definition at line 191 of file FileTest.php.

prepareFixture ( )
protected
Returns

Definition at line 54 of file FileTest.php.

setUp ( )
protected
tearDown ( )
protected

Definition at line 45 of file FileTest.php.

References GeneralUtility\resetSingletonInstances().

updatePropertiesDiscardsUidIfAlreadySet ( )
Test:

Definition at line 112 of file FileTest.php.

updatePropertiesDoesNotRecordPropertyNameIfSameValueIsProvided ( )
Test:

Definition at line 132 of file FileTest.php.

updatePropertiesLeavesPropertiesUntouchedIfNotSetInNewProperties ( )
Test:

Definition at line 101 of file FileTest.php.

updatePropertiesMarksPropertyAsChangedOnlyOnce ( )
Test:

Definition at line 142 of file FileTest.php.

updatePropertiesRecordsNamesOfChangedProperties ( )
Test:

Definition at line 122 of file FileTest.php.

updatePropertiesReloadsStorageObjectIfStorageChanges ( )
Test:

Definition at line 153 of file FileTest.php.

References GeneralUtility\setSingletonInstance().

updatePropertiesUpdatesFileProperties ( )
Test:

Definition at line 90 of file FileTest.php.

References BaseTestCase\getUniqueId().

Member Data Documentation

$singletonInstances = []
protected

Definition at line 27 of file FileTest.php.

$storageMock
protected

Definition at line 32 of file FileTest.php.

Referenced by FileTest\commonPropertiesAreAvailableWithOwnGetters().