You are here

public function TwigConvertTest::testFloatValue in Twig Tools 8

@covers ::floatValue

@dataProvider providerTestFloatValues

File

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

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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