public function FilterHtmlTest::testfilterAttributes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/filter/tests/src/Unit/FilterHtmlTest.php \Drupal\Tests\filter\Unit\FilterHtmlTest::testfilterAttributes()
@covers ::filterAttributes
@dataProvider providerFilterAttributes
Parameters
string $html: Input HTML.
array $expected: The expected output string.
File
- core/
modules/ filter/ tests/ src/ Unit/ FilterHtmlTest.php, line 48 - Contains \Drupal\Tests\filter\Unit\FilterHtmlTest.
Class
- FilterHtmlTest
- @coversDefaultClass \Drupal\filter\Plugin\Filter\FilterHtml @group filter
Namespace
Drupal\Tests\filter\UnitCode
public function testfilterAttributes($html, $expected) {
$this
->assertSame($expected, $this->filter
->filterAttributes($html));
}