public function TwigConvertTest::testBooleanValue in Twig Tools 8
@covers ::booleanValue
@dataProvider providerTestBooleanValues
File
- tests/
src/ Unit/ TwigConvertTest.php, line 36
Class
- TwigConvertTest
- Tests to ensure conversions filters work correctly.
Namespace
Drupal\Tests\twig_tools\UnitCode
public function testBooleanValue($template, $expected) {
$result = $this->twig
->render($template);
$this
->assertSame($expected, $result);
}