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

Public Member Functions

 fileIsUnwrappedFromReferenceForProcessing ()
 
 prefixIsCorrectlyAppliedToGetImageUriDataProvider ()
 
 prefixIsCorrectlyAppliedToGetImageUri ($imageUri, $expected)
 
 prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider ()
 
 prefixIsCorrectlyAppliedToGetImageUriWithForcedAbsoluteUrl ($imageUri, $expected)
 

Protected Member Functions

 setUp ()
 
- 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

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

Detailed Description

Test case

Definition at line 27 of file ImageScriptServiceTest.php.

Member Function Documentation

fileIsUnwrappedFromReferenceForProcessing ( )
Test:

Definition at line 54 of file ImageScriptServiceTest.php.

References BaseTestCase\getAccessibleMock().

prefixIsCorrectlyAppliedToGetImageUri (   $imageUri,
  $expected 
)
Test:
prefixIsCorrectlyAppliedToGetImageUriDataProvider

Definition at line 81 of file ImageScriptServiceTest.php.

References $GLOBALS.

prefixIsCorrectlyAppliedToGetImageUriDataProvider ( )
Returns
array

Definition at line 68 of file ImageScriptServiceTest.php.

prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider ( )
Returns
array

Definition at line 96 of file ImageScriptServiceTest.php.

prefixIsCorrectlyAppliedToGetImageUriWithForcedAbsoluteUrl (   $imageUri,
  $expected 
)
Test:
prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider

Definition at line 109 of file ImageScriptServiceTest.php.

References $GLOBALS.

setUp ( )
protected

Initialize ImageService and environment service mock

Definition at line 42 of file ImageScriptServiceTest.php.

References GeneralUtility\flushInternalRuntimeCaches(), and BaseTestCase\inject().

Member Data Documentation

$environmentService
protected

Definition at line 37 of file ImageScriptServiceTest.php.

$subject
protected

Definition at line 32 of file ImageScriptServiceTest.php.