You are here

public function TwigConvertTest::testJsonDecode in Twig Tools 8

@covers ::jsonDecode

@dataProvider providerTestJsonDecodeValues

File

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

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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