From 6f10a076a39b4b4a0a14b71373557f12160cf4b1 Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Thu, 27 Jan 2022 10:57:50 +0100 Subject: [PATCH] fix: mark test as incomplete (better). --- tests/TestCase/Api/AuthKeys/DeleteAuthKeyApiTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } }