Skip to content

Commit

Permalink
test: Fix federation test
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and miaulalala committed Jan 30, 2025
1 parent e193de5 commit 5eb233c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3965,7 +3965,7 @@ private function assertNotifications($notifications, TableNode $formData) {

$expectedNotifications = array_map(function (array $expectedNotification): array {
if (str_contains($expectedNotification['object_id'], '/')) {
[$roomToken, $message] = explode('/', $expectedNotification['object_id']);
[$roomToken, $message] = explode('/', $expectedNotification['object_id'], 2);
$result = preg_match('/TEAM_ID\(([^)]+)\)/', $message, $matches);
if ($result) {
$message = str_replace($matches[0], 'team/' . self::$createdTeams[$this->currentServer][$matches[1]], $message);
Expand Down

0 comments on commit 5eb233c

Please sign in to comment.