Skip to content

Commit 0c93abb

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
test: Fix federation test
Signed-off-by: Joas Schilling <[email protected]>
1 parent 4fc2f20 commit 0c93abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/features/bootstrap/FeatureContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ private function assertNotifications($notifications, TableNode $formData) {
39653965

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

0 commit comments

Comments
 (0)