diff --git a/tests/projectTest.php b/tests/projectTest.php index cdb500e..e788585 100644 --- a/tests/projectTest.php +++ b/tests/projectTest.php @@ -8,10 +8,11 @@ final class ProjectTest extends TestCase { public function testNoTokenShouldThrowError() { - $api = new Memsource('fakeToken'); - $this->expectException(\Exception::class); + $api = new Memsource(); + $this->expectExceptionMessage('Missing Access Token'); $api->project()->list(); } + public function testInvalidProjectUidShouldThrowError() { $api = new Memsource('fakeToken');