You are here

public function FilterHtmlTest::testfilterAttributes in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/filter/tests/src/Unit/FilterHtmlTest.php \Drupal\Tests\filter\Unit\FilterHtmlTest::testfilterAttributes()

@covers ::filterAttributes

@dataProvider providerFilterAttributes

Parameters

string $html: Input HTML.

string $expected: The expected output string.

File

core/modules/filter/tests/src/Unit/FilterHtmlTest.php, line 43

Class

FilterHtmlTest
@coversDefaultClass \Drupal\filter\Plugin\Filter\FilterHtml @group filter

Namespace

Drupal\Tests\filter\Unit

Code

public function testfilterAttributes($html, $expected) {
  $this
    ->assertSame($expected, $this->filter
    ->filterAttributes($html));
}