Browse Source
fix(CI): FIx integration tests for Postgres (sort order from DB differs
Signed-off-by: Joas Schilling <coding@schilljs.com>
feat/10410/sip-dial-out
Joas Schilling
2 years ago
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with
5 additions and
8 deletions
-
tests/integration/features/bootstrap/FeatureContext.php
|
|
|
@ -688,6 +688,10 @@ class FeatureContext implements Context, SnippetAcceptingContext { |
|
|
|
} |
|
|
|
self::$userToAttendeeId[$identifier][$attendee['actorType']][$attendee['actorId']] = $attendee['attendeeId']; |
|
|
|
|
|
|
|
if (!empty($attendee['phoneNumber'])) { |
|
|
|
self::$phoneNumberToActorId[$attendee['phoneNumber']] = $attendee['actorId']; |
|
|
|
} |
|
|
|
|
|
|
|
$result[] = $data; |
|
|
|
} |
|
|
|
|
|
|
|
@ -702,14 +706,7 @@ class FeatureContext implements Context, SnippetAcceptingContext { |
|
|
|
|
|
|
|
if (isset($attendee['actorId'], $attendee['actorType'], $attendee['phoneNumber']) |
|
|
|
&& $attendee['actorType'] === 'phones' |
|
|
|
&& $attendee['actorId'] === 'PHONE(' . $actual['phoneNumber'] . ')' |
|
|
|
&& $attendee['phoneNumber'] === $actual['phoneNumber']) { |
|
|
|
$attendee['actorId'] = $actual['actorId']; |
|
|
|
} |
|
|
|
|
|
|
|
if (!empty($actual['phoneNumber'])) { |
|
|
|
self::$phoneNumberToActorId[$actual['phoneNumber']] = $actual['actorId']; |
|
|
|
} else { |
|
|
|
&& str_starts_with($attendee['actorId'], 'PHONE(')) { |
|
|
|
$matched = preg_match('/PHONE\((\+\d+)\)/', $attendee['actorId'], $matches); |
|
|
|
if ($matched) { |
|
|
|
$attendee['actorId'] = self::$phoneNumberToActorId[$matches[1]]; |
|
|
|
|