class DesignTokenValuePluginTestBase
Base class for testing design token value plugins.
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\DrupalTestCaseTrait, \Drupal\Tests\PhpUnitCompatibilityTrait, \Prophecy\PhpUnit\ProphecyTrait, \Drupal\TestTools\Extension\DeprecationBridge\ExpectDeprecationTrait, \Drupal\Tests\RandomGeneratorTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Core\Theme\DesignToken\DesignTokenValuePluginTestBase extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of DesignTokenValuePluginTestBase
5 files declare their use of DesignTokenValuePluginTestBase
- DimensionTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ DimensionTest.php - FontFamilyTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ FontFamilyTest.php - FontWeightTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ FontWeightTest.php - NumberTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ NumberTest.php - TypographyTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ TypographyTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ DesignTokenValuePluginTestBase.php, line 12
Namespace
Drupal\Tests\Core\Theme\DesignTokenView source
abstract class DesignTokenValuePluginTestBase extends UnitTestCase {
/**
* The tested plugin ID.
*/
protected string $pluginId;
/**
* Tests toDtcg.
*/
abstract public function testToDtcg(mixed $value, mixed $expected) : void;
/**
* Tests toCss.
*/
abstract public function testToCss(mixed $value, string $expected) : void;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.