You are here

public function TwigSanitizeTest::testArrayUnique in Twig Tools 8

@covers ::arrayUnique

@dataProvider providerTestArrayUniqueValues

File

tests/src/Unit/TwigSanitizeTest.php, line 68

Class

TwigSanitizeTest
Tests to ensure sanitization filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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