diff --git a/tests/TestCase/Api/AuthKeys/DeleteAuthKeyApiTest.php b/tests/TestCase/Api/AuthKeys/DeleteAuthKeyApiTest.php index 6d638c9..cc449a8 100644 --- a/tests/TestCase/Api/AuthKeys/DeleteAuthKeyApiTest.php +++ b/tests/TestCase/Api/AuthKeys/DeleteAuthKeyApiTest.php @@ -34,13 +34,14 @@ class DeleteAuthKeyApiTest extends TestCase public function testDeleteOrgAdminAuthKeyNotAllowedAsRegularUser(): void { - $this->markTestSkipped('FIXME: this test returns string(4) "null", which is not a valid JSON object with 405 status code.'); + $this->skipOpenApiValidations(); $this->setAuthToken(AuthKeysFixture::REGULAR_USER_API_KEY); $url = sprintf('%s/%d', self::ENDPOINT, AuthKeysFixture::ORG_ADMIN_API_ID); $this->delete($url); - - $this->assertResponseCode(405); $this->assertDbRecordExists('AuthKeys', ['id' => AuthKeysFixture::ORG_ADMIN_API_ID]); + + $this->markTestIncomplete('FIXME: this test returns string(4) "null", which is not a valid JSON object with 405 status code.'); + $this->assertResponseCode(405); } }