function DimensionTest::testToCss

Attributes

#[DataProvider('providerToCss')]

File

core/tests/Drupal/Tests/Core/Theme/DesignToken/Plugin/DimensionTest.php, line 82

Class

DimensionTest
Tests dimension value plugin.

Namespace

Drupal\Tests\Core\Theme\DesignToken\Plugin

Code

public function testToCss(mixed $value, string $expected) : void {
  $this->assertIsArray($value);
  $plugin = new Dimension($value, $this->pluginId, []);
  $this->assertSame($expected, $plugin->toCss());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.