From dbc028803847a4b92263532c617c1cd57b55252e Mon Sep 17 00:00:00 2001 From: Maxime Rainville <maxime@silverstripe.com> Date: Mon, 1 Jul 2024 10:36:37 +1200 Subject: [PATCH] MNT ALter order of expected attribute on image test (#11286) --- tests/php/Forms/HTMLEditor/HTMLEditorFieldTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/php/Forms/HTMLEditor/HTMLEditorFieldTest.php b/tests/php/Forms/HTMLEditor/HTMLEditorFieldTest.php index 1a0196e60..f17b1fe12 100644 --- a/tests/php/Forms/HTMLEditor/HTMLEditorFieldTest.php +++ b/tests/php/Forms/HTMLEditor/HTMLEditorFieldTest.php @@ -182,7 +182,9 @@ class HTMLEditorFieldTest extends FunctionalTest $this->assertEquals( <<<EOS <span class="readonly typography" id="Content"> - <img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20" loading="lazy"> + <img width="10" height="20" alt="" src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" loading="lazy"> + + </span> @@ -199,7 +201,9 @@ EOS $this->assertEquals( <<<EOS <span class="readonly typography" id="Content"> - <img src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" alt="" width="10" height="20" loading="lazy"> + <img width="10" height="20" alt="" src="/assets/HTMLEditorFieldTest/f5c7c2f814/example__ResizedImageWzEwLDIwXQ.jpg" loading="lazy"> + + </span> <input type="hidden" name="Content" value="[image src="/assets/HTMLEditorFieldTest/f5c7c2f814/example.jpg" width="10" height="20" id="{$fileID}"]" />