‪TYPO3CMS  11.5
TYPO3\CMS\Core\Tests\Unit\Resource\RelativeCssPathFixerTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Resource\RelativeCssPathFixerTest:
TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase

Public Member Functions

array fixRelativeUrlPathsDataProvider ()
 
 fixRelativeUrlPaths (string $css, string $newDir, string $expected)
 

Protected Attributes

bool $backupEnvironment = true
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase
string $basedir = 'basedir'
 
string $mountDir
 
array $vfsContents = []
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase
 setUp ()
 
 getMountRootUrl ()
 
 mergeToVfsContents ($contents)
 
 initializeVfs ()
 
 addToMount (array $dirStructure)
 
 getUrlInMount (string $path)
 
 addToVfs (array $dirStructure)
 
 getUrl (string $path)
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder _createFileFolderMock (string $type, string $identifier, array $mockedMethods)
 
TYPO3 CMS Core Resource File PHPUnit Framework MockObject MockObject getSimpleFileMock (string $identifier, array $mockedMethods=[])
 
TYPO3 CMS Core Resource Folder getSimpleFolderMock (string $identifier, array $mockedMethods=[])
 
TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder getFolderMock (string $identifier, array $mockedMethods=[], array $subfolders=[], array $files=[])
 

Detailed Description

Testcase for the RelativeCssPathFixer class

Definition at line 25 of file RelativeCssPathFixerTest.php.

Member Function Documentation

◆ fixRelativeUrlPaths()

TYPO3\CMS\Core\Tests\Unit\Resource\RelativeCssPathFixerTest::fixRelativeUrlPaths ( string  $css,
string  $newDir,
string  $expected 
)
Test:
‪@dataProvider fixRelativeUrlPathsDataProvider
Parameters
string$css‪css input
string$newDir‪new Directory of css file
string$expected‪expected adjusted import path

Definition at line 88 of file RelativeCssPathFixerTest.php.

◆ fixRelativeUrlPathsDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Resource\RelativeCssPathFixerTest::fixRelativeUrlPathsDataProvider ( )
Returns
‪array

Definition at line 34 of file RelativeCssPathFixerTest.php.

Member Data Documentation

◆ $backupEnvironment

bool TYPO3\CMS\Core\Tests\Unit\Resource\RelativeCssPathFixerTest::$backupEnvironment = true
protected

Restore Environment after tests

Definition at line 29 of file RelativeCssPathFixerTest.php.