Skip to content

Commit 1464d0b

Browse files
committed
fixup! IBX-8891: XML link validator in rich-text does not allow to use "tel: " - Fixed tests
1 parent 7a6c71a commit 1464d0b

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

tests/lib/eZ/FieldType/RichTextTest.php

+17-3
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,14 @@ public function providerForTestValidate()
224224
[
225225
new ValidationError(
226226
"Validation of XML content failed:\n" .
227-
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
227+
'Error in 3:0: Element section has extra content: para',
228+
null,
229+
[],
230+
'xml'
231+
),
232+
new ValidationError(
233+
"Validation of XML content failed:\n" .
234+
'/section/para/link: using scripts in links is not allowed',
228235
null,
229236
[],
230237
'xml'
@@ -239,7 +246,7 @@ public function providerForTestValidate()
239246
[
240247
new ValidationError(
241248
"Validation of XML content failed:\n" .
242-
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
249+
'Error in 3:0: Element section has extra content: para',
243250
null,
244251
[],
245252
'xml'
@@ -269,7 +276,14 @@ public function providerForTestValidate()
269276
[
270277
new ValidationError(
271278
"Validation of XML content failed:\n" .
272-
'/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #',
279+
'Error in 3:0: Element section has extra content: para',
280+
null,
281+
[],
282+
'xml'
283+
),
284+
new ValidationError(
285+
"Validation of XML content failed:\n" .
286+
'/section/para/link: using scripts in links is not allowed',
273287
null,
274288
[],
275289
'xml'

0 commit comments

Comments
 (0)