fix: [tests] changed assertion for authkey failure on insufficient privilege from 404 to 405

pull/92/head
iglocska 2022-02-20 14:48:29 +01:00
parent 495c4ee93c
commit 2ef2dbbe62
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 2 deletions

View File

@ -65,8 +65,7 @@ class AddAuthKeyApiTest extends TestCase
]
);
$this->assertResponseCode(404);
$this->addWarning('Should return 405 Method Not Allowed instead of 404 Not Found');
$this->assertResponseCode(405);
$this->assertDbRecordNotExists('AuthKeys', ['uuid' => $uuid]);
}
}