class DesignTokenValuePluginTestBase

Base class for testing design token value plugins.

Hierarchy

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\DesignToken
View 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.