Skip to content

Commit

Permalink
fixup! IBX-8891: XML link validator in rich-text does not allow to us…
Browse files Browse the repository at this point in the history
…e "tel: " - Fixed tests
  • Loading branch information
vidarl committed Sep 18, 2024
1 parent 7a6c71a commit 1464d0b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions tests/lib/eZ/FieldType/RichTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,14 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
'Error in 3:0: Element section has extra content: para',
null,
[],
'xml'
),
new ValidationError(
"Validation of XML content failed:\n" .
'/section/para/link: using scripts in links is not allowed',
null,
[],
'xml'
Expand All @@ -239,7 +246,7 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
'Error in 3:0: Element section has extra content: para',
null,
[],
'xml'
Expand Down Expand Up @@ -269,7 +276,14 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
'Error in 3:0: Element section has extra content: para',
null,
[],
'xml'
),
new ValidationError(
"Validation of XML content failed:\n" .
'/section/para/link: using scripts in links is not allowed',
null,
[],
'xml'
Expand Down

0 comments on commit 1464d0b

Please sign in to comment.