Skip to content

Commit

Permalink
test: Fix integration test function with returning null :D
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 21, 2024
1 parent ccb2362 commit 036b7d4
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 @@ -2114,7 +2114,7 @@ public function userJoinsCall(string $user, string $identifier, int $statusCode,
$this->assertStatusCode($this->response, $statusCode);

$response = $this->getDataFromResponse($this->response);
if (array_key_exists('sessionId', $response)) {
if (is_array($response) && array_key_exists('sessionId', $response)) {
// In the chat guest users are identified by their sessionId. The
// sessionId is larger than the size of the actorId column in the
// database, though, so the ID stored in the database and returned
Expand Down

0 comments on commit 036b7d4

Please sign in to comment.