Skip to content

Commit 4b2320e

Browse files
committed
test: fix antivirus test expectations
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
1 parent 7eb7d35 commit 4b2320e

File tree

3 files changed

+78
-78
lines changed

3 files changed

+78
-78
lines changed

tests/acceptance/bootstrap/NotificationContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public function filterNotificationsBySubjectAndResource(
377377
}
378378

379379
/**
380-
* @Then /^user "([^"]*)" should (?:get|have) a notification with subject "([^"]*)" and message:$/
380+
* @Then /^user "([^"]*)" should get a notification with subject "([^"]*)" and message:$/
381381
*
382382
* @param string $user
383383
* @param string $subject
@@ -411,7 +411,7 @@ public function userShouldGetANotificationWithMessage(string $user, string $subj
411411
throw new \Exception("Notification was not found even after retrying for 5 seconds.");
412412
}
413413
$expectedMessage = $table->getColumnsHash()[0]['message'];
414-
Assert::assertSame(
414+
Assert::assertStringStartsWith(
415415
$expectedMessage,
416416
$actualMessage,
417417
__METHOD__ . "expected message to be '$expectedMessage' but found'$actualMessage'"

0 commit comments

Comments
 (0)