From 2c652915625c47b493a2be06924f4c87d1df7d8e Mon Sep 17 00:00:00 2001 From: Gunnstein Lye <289744+glye@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:03:23 +0200 Subject: [PATCH] Fixed failing test for ezremote protocol --- .../eZ/RichText/Resources/schemas/docbook/docbook.iso.sch | 3 ++- .../RichText/Resources/schemas/docbook/docbook.iso.sch.xsl | 2 +- tests/lib/eZ/FieldType/RichTextTest.php | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch index d30ad34b..c3062f9b 100644 --- a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch +++ b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch @@ -258,9 +258,10 @@ starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), 'mailto:') or starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), 'ezcontent://') or starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), 'ezlocation://') or + starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), 'ezremote://') or starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), 'ezurl://') or starts-with(translate(@*[name()='xlink:href'], $upperCase, $lowerCase), '#')" - mode="schematron-get-full-path-2">links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezurl://, # + mode="schematron-get-full-path-2">links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, # -links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezurl://, # +links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, # using characters [< > "] in links is not allowed diff --git a/tests/lib/eZ/FieldType/RichTextTest.php b/tests/lib/eZ/FieldType/RichTextTest.php index 010b5d9c..bc484a54 100644 --- a/tests/lib/eZ/FieldType/RichTextTest.php +++ b/tests/lib/eZ/FieldType/RichTextTest.php @@ -224,7 +224,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://, ezurl://, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, #', null, [], 'xml' @@ -239,7 +239,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://, ezurl://, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, #', null, [], 'xml' @@ -269,7 +269,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://, ezurl://, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, #', null, [], 'xml'