You are here

public function TwigSanitizeTest::testScrubClassArray in Twig Tools 8

@covers ::scrubClassArray

@dataProvider providerTestScrubClassArrayValues

File

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

Class

TwigSanitizeTest
Tests to ensure sanitization filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

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