api()->request('GET', 'does-not-exist'); $this->assertApiError($res, 'NOT_FOUND', 404); } public function testUnauthorizedWithoutToken(): void { $res = $this->api()->request('GET', 'questionnaires'); $this->assertApiError($res, 'UNAUTHORIZED', 401); } }