You are here

protected function AbstractUiPatternsTest::getFixtureContent in UI Patterns 8

Get fixture content.

Parameters

string $filepath: File path.

Return value

array A set of test data.

3 calls to AbstractUiPatternsTest::getFixtureContent()
PatternBaseTest::hookLibraryInfoBuildDataProvider in tests/src/Kernel/Plugin/PatternBaseTest.php
Data provider for rendering tests.
PatternDataDefinitionTest::validationProvider in tests/src/Kernel/TypedData/PatternDataDefinitionTest.php
Return validation data.
UiPatternsPreviewTest::processContextDataProvider in tests/src/Kernel/UiPatternsPreviewTest.php
Data provider for Process Context tests.

File

tests/src/Kernel/AbstractUiPatternsTest.php, line 36

Class

AbstractUiPatternsTest
Class AbstractUiPatternsTest.

Namespace

Drupal\Tests\ui_patterns\Kernel

Code

protected function getFixtureContent($filepath) {
  return Yaml::decode(file_get_contents($this
    ->getFixturePath() . '/' . $filepath));
}