You are here

public function TwigConvertTest::testIntegerValue in Twig Tools 8

@covers ::integerValue

@dataProvider providerTestIntegerValues

File

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

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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