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