Skip to content

Commit

Permalink
test(behat): adapt to changed server output string
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Mar 14, 2024
1 parent 87e7d05 commit 70650c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ public function theLastLoginTimestampOfShouldNotBeEmpty($uid) {
);

$response = trim($response);
$expectedStringStart = "$uid`s last login: ";
if (substr($response, 0, strlen($expectedStringStart)) !== $expectedStringStart) {
$loginTimeProof = 's last login: ';
if (!str_contains($response, $loginTimeProof)) {
throw new UnexpectedValueException("Expected last login message, found instead '$response'");
}
}
Expand Down

0 comments on commit 70650c6

Please sign in to comment.