You are here

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

Code

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