You are here

public function TwigColorTest::testCssRgbToHex in Twig Tools 8

@covers ::cssRgbToHex

@dataProvider providerTestCssRgbToHexValues

File

tests/src/Unit/TwigColorTest.php, line 70

Class

TwigColorTest
Tests to ensure color convert filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

public function testCssRgbToHex($template, $expected) {
  $result = $this->twig
    ->render($template);
  $this
    ->assertSame($expected, $result);
}