From ec34f502f89d3a2911c3541f20304da802a4407a Mon Sep 17 00:00:00 2001 From: Steve Chaloner Date: Fri, 3 May 2024 11:20:44 +0200 Subject: [PATCH] Update tests for new error messages (#113) Reflects changes in more detailed error messages from the server Co-authored-by: Steve Chaloner --- tests/ErrorHandlingTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ErrorHandlingTest.php b/tests/ErrorHandlingTest.php index 40d0a0d..08cc641 100644 --- a/tests/ErrorHandlingTest.php +++ b/tests/ErrorHandlingTest.php @@ -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); } }