fix: mark test as incomplete (better).
parent
290baa2354
commit
6f10a076a3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue