From 655a8efed5e4bc86ba1b6a47ea1ad1ea2012ce2b Mon Sep 17 00:00:00 2001 From: Evgeniy Tkachenko Date: Fri, 16 Feb 2018 15:20:35 +0300 Subject: [PATCH] fix assertEqualsLastEmailSubject in tests --- .../humhub/tests/codeception/_support/HumHubDbTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protected/humhub/tests/codeception/_support/HumHubDbTestCase.php b/protected/humhub/tests/codeception/_support/HumHubDbTestCase.php index 1626bce111..5d0c721e89 100644 --- a/protected/humhub/tests/codeception/_support/HumHubDbTestCase.php +++ b/protected/humhub/tests/codeception/_support/HumHubDbTestCase.php @@ -159,7 +159,7 @@ class HumHubDbTestCase extends Test public function assertEqualsLastEmailSubject($subject) { $message = $this->getModule('Yii2')->grabLastSentEmail(); - $this->assertEquals($subject, $message->getSubject()); + $this->assertEquals($subject, str_replace(["\n", "\r"], '', $message->getSubject())); } public function allowGuestAccess($allow = true)