From 5eb233cb2d7724757944bad1989bcf6af578ae19 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 30 Jan 2025 16:39:43 +0100 Subject: [PATCH] test: Fix federation test Signed-off-by: Joas Schilling --- tests/integration/features/bootstrap/FeatureContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 49553e2a45e..25b57470827 100644 --- a/tests/integration/features/bootstrap/FeatureContext.php +++ b/tests/integration/features/bootstrap/FeatureContext.php @@ -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);