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 '|Sample Image|', Excerpts::processImageHtml('Sample Image', $this->page) ); + // This one should not be processed. self::assertRegexp( - '|Sample Image|', + '|Sample Image|', Excerpts::processImageHtml('Sample Image', $this->page) ); + self::assertRegexp( + '|Sample Image|', + Excerpts::processImageHtml('Sample Image', $this->page) + ); } public function testNoProcess(): void