You are here

public function TwigConvertTest::testStringValue in Twig Tools 8

@covers ::stringValue

@dataProvider providerTestStringValues

File

tests/src/Unit/TwigConvertTest.php, line 165

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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