function TypographyTest::testToCss
Attributes
#[DataProvider('providerToCss')]
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.