Skip to content

Commit

Permalink
Update tests for new error messages (#113)
Browse files Browse the repository at this point in the history
Reflects changes in more detailed error messages from the server

Co-authored-by: Steve Chaloner <[email protected]>
  • Loading branch information
schaloner and Steve Chaloner authored May 3, 2024
1 parent 56f94d6 commit ec34f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ErrorHandlingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public function test4xx()
$this->fail();
} catch (SeatsioException $e) {
self::assertEquals('CHART_NOT_FOUND', $e->errors[0]->code);
self::assertEquals('Chart not found: unexistingChart', $e->errors[0]->message);
self::assertEquals('Chart not found: unexistingChart', $e->getMessage());
self::assertStringStartsWith('Chart not found: unexistingChart was not found in workspace', $e->errors[0]->message);
self::assertStringStartsWith('Chart not found: unexistingChart was not found in workspace', $e->getMessage());
self::assertNotNull($e->requestId);
}
}
Expand Down

0 comments on commit ec34f50

Please sign in to comment.