core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php b/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php index c049ecf03b..840cf083ad 100644 --- a/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php +++ b/core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php @@ -442,9 +442,9 @@ public function providerRepresentations(): \Generator { ]; yield 'realistic' => [ - new HTMLRestrictions(['a' => ['href' => TRUE, 'hreflang' => ['en' => TRUE, 'fr' => TRUE]], 'p' => ['data-*' => TRUE], 'br' => FALSE]), - ['', '', ''], - ' ', + new HTMLRestrictions(['a' => ['href' => TRUE, 'hreflang' => ['en' => TRUE, 'fr' => TRUE]], 'p' => ['data-*' => TRUE, 'class' => ['block' => TRUE]], 'br' => FALSE]), + ['', '', ''], + ' ', [ [ 'name' => 'a', @@ -462,6 +462,9 @@ public function providerRepresentations(): \Generator { 'attributes' => [ 'data-*' => TRUE, ], + 'classes' => [ + 'block', + ], ], ['name' => 'br'], ],
', ''], - ' ', + new HTMLRestrictions(['a' => ['href' => TRUE, 'hreflang' => ['en' => TRUE, 'fr' => TRUE]], 'p' => ['data-*' => TRUE, 'class' => ['block' => TRUE]], 'br' => FALSE]), + ['', '', ''], + ' ', [ [ 'name' => 'a', @@ -462,6 +462,9 @@ public function providerRepresentations(): \Generator { 'attributes' => [ 'data-*' => TRUE, ], + 'classes' => [ + 'block', + ], ], ['name' => 'br'], ],
', + new HTMLRestrictions(['a' => ['href' => TRUE, 'hreflang' => ['en' => TRUE, 'fr' => TRUE]], 'p' => ['data-*' => TRUE, 'class' => ['block' => TRUE]], 'br' => FALSE]), + ['', '', ''], + ' ', [ [ 'name' => 'a', @@ -462,6 +462,9 @@ public function providerRepresentations(): \Generator { 'attributes' => [ 'data-*' => TRUE, ], + 'classes' => [ + 'block', + ], ], ['name' => 'br'], ],
', ''], + ' ', [ [ 'name' => 'a', @@ -462,6 +462,9 @@ public function providerRepresentations(): \Generator { 'attributes' => [ 'data-*' => TRUE, ], + 'classes' => [ + 'block', + ], ], ['name' => 'br'], ],
', [ [ 'name' => 'a', @@ -462,6 +462,9 @@ public function providerRepresentations(): \Generator { 'attributes' => [ 'data-*' => TRUE, ], + 'classes' => [ + 'block', + ], ], ['name' => 'br'], ],