mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
Added logic to properly map all existing errors from v3 to v2 in the API
This commit is contained in:
@@ -65,7 +65,7 @@ class MissingAuthenticationExceptionTest extends TestCase
|
||||
private function assertCommonExceptionShape(MissingAuthenticationException $e): void
|
||||
{
|
||||
self::assertEquals('Invalid authorization', $e->getTitle());
|
||||
self::assertEquals('INVALID_AUTHORIZATION', $e->getType());
|
||||
self::assertEquals('https://shlink.io/api/error/missing-authentication', $e->getType());
|
||||
self::assertEquals(401, $e->getStatus());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user