function HTMLRestrictionsTest::testSubsets

Same name in other branches
  1. 10 core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php \Drupal\Tests\ckeditor5\Unit\HTMLRestrictionsTest::testSubsets()
  2. 11.x core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php \Drupal\Tests\ckeditor5\Unit\HTMLRestrictionsTest::testSubsets()

@covers ::getWildcardSubset @covers ::getConcreteSubset @covers ::getPlainTagsSubset() @covers ::extractPlainTagsSubset() @dataProvider providerSubsets

File

core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php, line 1500

Class

HTMLRestrictionsTest
@coversDefaultClass \Drupal\ckeditor5\HTMLRestrictions @group ckeditor5

Namespace

Drupal\Tests\ckeditor5\Unit

Code

public function testSubsets(HTMLRestrictions $input, HTMLRestrictions $expected_wildcard_subset, HTMLRestrictions $expected_concrete_subset, HTMLRestrictions $expected_plain_tags_subset, HTMLRestrictions $expected_extracted_plain_tags_subset) : void {
    $this->assertEquals($expected_wildcard_subset, $input->getWildcardSubset());
    $this->assertEquals($expected_concrete_subset, $input->getConcreteSubset());
    $this->assertEquals($expected_plain_tags_subset, $input->getPlainTagsSubset());
    $this->assertEquals($expected_extracted_plain_tags_subset, $input->extractPlainTagsSubset());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.