fix: mark test as incomplete (better).

pull/86/head
Luciano Righetti 2022-01-27 10:57:50 +01:00
parent 290baa2354
commit 6f10a076a3
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}
}