function TypographyTest::testToCss
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Theme/DesignToken/Plugin/TypographyTest.php \Drupal\Tests\Core\Theme\DesignToken\Plugin\TypographyTest::testToCss()
Attributes
#[DataProvider('providerToCss')]
Overrides DesignTokenValuePluginTestBase::testToCss
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ TypographyTest.php, line 128
Class
- TypographyTest
- Tests typography value plugin.
Namespace
Drupal\Tests\Core\Theme\DesignToken\PluginCode
public function testToCss(mixed $value, string $expected) : void {
$this->assertIsArray($value);
$this->setupContainer($value);
$plugin = new Typography($value, $this->pluginId, [], \Drupal::service(DesignTokenValuePluginManagerInterface::class));
$this->assertSame($expected, $plugin->toCss());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.