public function TwigColorTest::testHexToCssRgb in Twig Tools 8
@covers ::hexToCssRgb
@dataProvider providerTestHexToCssRgbValues
File
- tests/
src/ Unit/ TwigColorTest.php, line 139
Class
- TwigColorTest
- Tests to ensure color convert filters work correctly.
Namespace
Drupal\Tests\twig_tools\UnitCode
public function testHexToCssRgb($template, $expected) {
$result = $this->twig
->render($template);
$this
->assertSame($expected, $result);
}