You are here

public function TwigSanitizeTest::testCleanClassArray in Twig Tools 8

@covers ::cleanClassArray

@dataProvider providerTestCleanClassArrayValues

File

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

Class

TwigSanitizeTest
Tests to ensure sanitization filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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