AbstractUiPatternsTest.php in UI Patterns 8
Same filename in this branch
Namespace
Drupal\Tests\ui_patterns\KernelFile
tests/src/Kernel/AbstractUiPatternsTest.phpView source
<?php
namespace Drupal\Tests\ui_patterns\Kernel;
use Drupal\Component\Serialization\Yaml;
use Drupal\KernelTests\KernelTestBase;
/**
* Class AbstractUiPatternsTest.
*
* @group ui_patterns
*
* @package Drupal\Tests\ui_patterns\Kernel
*/
abstract class AbstractUiPatternsTest extends KernelTestBase {
/**
* Get fixtures base path.
*
* @return string
* Fixtures base path.
*/
protected function getFixturePath() {
return realpath(__DIR__ . '/../fixtures');
}
/**
* Get fixture content.
*
* @param string $filepath
* File path.
*
* @return array
* A set of test data.
*/
protected function getFixtureContent($filepath) {
return Yaml::decode(file_get_contents($this
->getFixturePath() . '/' . $filepath));
}
}
Classes
Name | Description |
---|---|
AbstractUiPatternsTest | Class AbstractUiPatternsTest. |