fix: [tests] changed assertion for authkey failure on insufficient privilege from 404 to 405
parent
495c4ee93c
commit
2ef2dbbe62
|
@ -65,8 +65,7 @@ class AddAuthKeyApiTest extends TestCase
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertResponseCode(404);
|
$this->assertResponseCode(405);
|
||||||
$this->addWarning('Should return 405 Method Not Allowed instead of 404 Not Found');
|
|
||||||
$this->assertDbRecordNotExists('AuthKeys', ['uuid' => $uuid]);
|
$this->assertDbRecordNotExists('AuthKeys', ['uuid' => $uuid]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue