You are here

public function TwigColorTest::testRgbToHex in Twig Tools 8

@covers ::rgbToHex

@dataProvider providerTestRgbToHexValues

File

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

Class

TwigColorTest
Tests to ensure color convert filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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