‪TYPO3CMS  10.4
TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest:

Public Member Functions

 load ()
 
 loadWithAnImport ()
 
 loadWithMultipleImports ()
 
 loadWithImportAndRelativePaths ()
 
 loadWithPlaceholders ()
 
 loadWithNestedPlaceholders ()
 
 loadWithImportAndEnvVars ()
 
 loadWithEnvVarDataProvider ()
 
 loadWithEnvVarPlaceholders (array $envs, string $yamlContent, array $expected)
 
 loadWithEnvVarPlaceholdersDoesNotReplaceWithNonExistingValues ()
 
array isPlaceholderDataProvider ()
 
 containsPlaceholderTest ($placeholderValue, bool $expected)
 

Detailed Description

Test case for the YAML file loader class

Definition at line 26 of file YamlFileLoaderTest.php.

Member Function Documentation

◆ containsPlaceholderTest()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::containsPlaceholderTest (   $placeholderValue,
bool  $expected 
)

@dataProvider isPlaceholderDataProvider

Test:
Parameters
mixed$placeholderValue
bool$expected

Definition at line 461 of file YamlFileLoaderTest.php.

References $output.

◆ isPlaceholderDataProvider()

array TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::isPlaceholderDataProvider ( )

dataprovider for tests isPlaceholderTest

Returns
‪array

Definition at line 408 of file YamlFileLoaderTest.php.

◆ load()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::load ( )

Generic method to check if the load method returns an array from a YAML file

Test:

Definition at line 32 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithAnImport()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithAnImport ( )

Method checking for imports that they have been processed properly

Test:

Definition at line 62 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithEnvVarDataProvider()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithEnvVarDataProvider ( )

Definition at line 278 of file YamlFileLoaderTest.php.

◆ loadWithEnvVarPlaceholders()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithEnvVarPlaceholders ( array  $envs,
string  $yamlContent,
array  $expected 
)

Method checking for env placeholders

@dataProvider loadWithEnvVarDataProvider

Test:
Parameters
array$envs
string$yamlContent
array$expected

Definition at line 348 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithEnvVarPlaceholdersDoesNotReplaceWithNonExistingValues()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithEnvVarPlaceholdersDoesNotReplaceWithNonExistingValues ( )

Method checking for env placeholders

Test:

Definition at line 372 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithImportAndEnvVars()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithImportAndEnvVars ( )

Method checking for imports with env vars that they have been processed properly

Test:

Definition at line 258 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithImportAndRelativePaths()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithImportAndRelativePaths ( )

Method checking for imports that they have been processed properly

Test:

Definition at line 163 of file YamlFileLoaderTest.php.

◆ loadWithMultipleImports()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithMultipleImports ( )

Method checking for mulitple imports that they have been loaded in the right order

Test:

Definition at line 107 of file YamlFileLoaderTest.php.

References $GLOBALS, and $output.

◆ loadWithNestedPlaceholders()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithNestedPlaceholders ( )

Method checking for nested placeholders

Test:

Definition at line 219 of file YamlFileLoaderTest.php.

References $output.

◆ loadWithPlaceholders()

TYPO3\CMS\Core\Tests\Unit\Configuration\Loader\YamlFileLoaderTest::loadWithPlaceholders ( )

Method checking for placeholders

Test:

Definition at line 181 of file YamlFileLoaderTest.php.

References $output.