scenerio added only for Deutsch and Spanish language (#6523)

This commit is contained in:
Sabin Panta
2023-06-15 14:32:34 +05:45
committed by GitHub
parent 8be86f6535
commit 0bd628a956
2 changed files with 21 additions and 2 deletions
@@ -202,7 +202,7 @@ class NotificationContext implements Context {
public function userShouldGetANotificationWithMessage(string $user, string $subject, TableNode $table):void {
$this->userListAllNotifications($user);
$this->featureContext->theHTTPStatusCodeShouldBe(200);
$actualMessage = $this->filterResponseAccordingToNotificationSubject($subject)->message;
$actualMessage = str_replace(["\r", "\n"], " ", $this->filterResponseAccordingToNotificationSubject($subject)->message);
$expectedMessage = $table->getColumnsHash()[0]['message'];
Assert::assertSame(
$expectedMessage,