From 4ab86cd053a9da576c178091d4e3941e48afb7fe Mon Sep 17 00:00:00 2001 From: Keith Bauer Date: Thu, 3 Oct 2024 11:30:51 -0500 Subject: [PATCH] Add expectException --- tests/Model/CheckinRequest/CheckinRequestTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Model/CheckinRequest/CheckinRequestTest.php b/tests/Model/CheckinRequest/CheckinRequestTest.php index 6e26bd2..7281fbd 100644 --- a/tests/Model/CheckinRequest/CheckinRequestTest.php +++ b/tests/Model/CheckinRequest/CheckinRequestTest.php @@ -62,6 +62,8 @@ public function testIfPostDataIsValid() */ public function testIfInvalidPostDataThrowsException() { + $this->expectException('\NYPL\Starter\APIException'); + $this->checkinRequest->setJobId('abcdefg'); $this->checkinRequest->validatePostData();