diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php index 49553e2a45e7..25b574708275 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);