From 9745eaeeb8df3c48c3f6d5531a12f3f7d4ec2c9a Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 9 May 2022 12:03:00 +0300 Subject: [PATCH] Fixed unit test for image resizing where behavior has changed --- tests/unit/Grav/Common/Helpers/ExcerptsTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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