You are here

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\Unit

Code

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