‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest:

Public Member Functions

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

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
ImageService $subject
 
EnvironmentService PHPUnit Framework MockObject MockObject $environmentService
 

Detailed Description

Test case

Definition at line 31 of file ImageScriptServiceTest.php.

Member Function Documentation

◆ fileIsUnwrappedFromReferenceForProcessing()

TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::fileIsUnwrappedFromReferenceForProcessing ( )
Test:

Definition at line 60 of file ImageScriptServiceTest.php.

◆ prefixIsCorrectlyAppliedToGetImageUri()

TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::prefixIsCorrectlyAppliedToGetImageUri (   $imageUri,
  $expected 
)
Test:
‪@dataProvider prefixIsCorrectlyAppliedToGetImageUriDataProvider

Definition at line 89 of file ImageScriptServiceTest.php.

References $GLOBALS.

◆ prefixIsCorrectlyAppliedToGetImageUriDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::prefixIsCorrectlyAppliedToGetImageUriDataProvider ( )
Returns
‪array

Definition at line 76 of file ImageScriptServiceTest.php.

◆ prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider ( )
Returns
‪array

Definition at line 104 of file ImageScriptServiceTest.php.

◆ prefixIsCorrectlyAppliedToGetImageUriWithForcedAbsoluteUrl()

TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::prefixIsCorrectlyAppliedToGetImageUriWithForcedAbsoluteUrl (   $imageUri,
  $expected 
)
Test:
‪@dataProvider prefixIsCorrectlyAppliedToGetImageUriWithAbsolutePathDataProvider

Definition at line 117 of file ImageScriptServiceTest.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::setUp ( )
protected

Initialize ImageService and environment service mock

Definition at line 48 of file ImageScriptServiceTest.php.

Member Data Documentation

◆ $environmentService

EnvironmentService PHPUnit Framework MockObject MockObject TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::$environmentService
protected

Definition at line 43 of file ImageScriptServiceTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 35 of file ImageScriptServiceTest.php.

◆ $subject

ImageService TYPO3\CMS\Extbase\Tests\Unit\Service\ImageScriptServiceTest::$subject
protected

Definition at line 39 of file ImageScriptServiceTest.php.