function FontFamilyTest::testToCss
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Theme/DesignToken/Plugin/FontFamilyTest.php \Drupal\Tests\Core\Theme\DesignToken\Plugin\FontFamilyTest::testToCss()
Attributes
#[DataProvider('providerToCss')]
Overrides DesignTokenValuePluginTestBase::testToCss
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ Plugin/ FontFamilyTest.php, line 59
Class
- FontFamilyTest
- Tests font family value plugin.
Namespace
Drupal\Tests\Core\Theme\DesignToken\PluginCode
public function testToCss(mixed $value, string $expected) : void {
$configuration = [
'value' => $value,
];
$plugin = new FontFamily($configuration, $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.