diff --git a/tests/unit/Grav/Common/Helpers/ExcerptsTest.php b/tests/unit/Grav/Common/Helpers/ExcerptsTest.php
index aba2fc8d8..c6993c30d 100644
--- a/tests/unit/Grav/Common/Helpers/ExcerptsTest.php
+++ b/tests/unit/Grav/Common/Helpers/ExcerptsTest.php
@@ -82,10 +82,15 @@ class ExcerptsTest extends \Codeception\TestCase\Test
'|
|',
Excerpts::processImageHtml('
', $this->page)
);
+ // This one should not be processed.
self::assertRegexp(
- '|
|',
+ '|
|',
Excerpts::processImageHtml('
', $this->page)
);
+ self::assertRegexp(
+ '|
|',
+ Excerpts::processImageHtml('
', $this->page)
+ );
}
public function testNoProcess(): void