function HTMLRestrictionsTest::testRepresentations
@covers ::toCKEditor5ElementsArray
@covers ::toFilterHtmlAllowedTagsString
@covers ::toGeneralHtmlSupportConfig
@dataProvider providerRepresentations
File
-
core/
modules/ ckeditor5/ tests/ src/ Unit/ HTMLRestrictionsTest.php, line 636
Class
- HTMLRestrictionsTest
- @coversDefaultClass \Drupal\ckeditor5\HTMLRestrictions[[api-linebreak]] @group ckeditor5
Namespace
Drupal\Tests\ckeditor5\UnitCode
public function testRepresentations(HTMLRestrictions $restrictions, array $expected_elements_array, string $expected_allowed_html_string, array $expected_ghs_config) : void {
$this->assertSame($expected_elements_array, $restrictions->toCKEditor5ElementsArray());
$this->assertSame($expected_allowed_html_string, $restrictions->toFilterHtmlAllowedTagsString());
$this->assertSame($expected_ghs_config, $restrictions->toGeneralHtmlSupportConfig());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.