You are here

public function TwigConvertTest::testDateFromFormat in Twig Tools 8

@covers ::dateFromFormat

@dataProvider providerTestDateFromFormat

File

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

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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