diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-28 12:54:52 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-28 13:16:18 +0100 |
commit | 156061d445fd23d033a52f84954484a3349c988a (patch) | |
tree | 1b8146152f3085c86d83e8532d4c278309a75078 /tests/bookmark/BookmarkFileServiceTest.php | |
parent | 34c8f558e595d4f90e46e3753c8455b0b515771a (diff) | |
download | Shaarli-156061d445fd23d033a52f84954484a3349c988a.tar.gz Shaarli-156061d445fd23d033a52f84954484a3349c988a.tar.zst Shaarli-156061d445fd23d033a52f84954484a3349c988a.zip |
Raise 404 error instead of 500 if permalink access is denied
Diffstat (limited to 'tests/bookmark/BookmarkFileServiceTest.php')
-rw-r--r-- | tests/bookmark/BookmarkFileServiceTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bookmark/BookmarkFileServiceTest.php b/tests/bookmark/BookmarkFileServiceTest.php index 8e0ff8dd..f619aff3 100644 --- a/tests/bookmark/BookmarkFileServiceTest.php +++ b/tests/bookmark/BookmarkFileServiceTest.php | |||
@@ -886,8 +886,8 @@ class BookmarkFileServiceTest extends TestCase | |||
886 | */ | 886 | */ |
887 | public function testFilterHashPrivateWhileLoggedOut() | 887 | public function testFilterHashPrivateWhileLoggedOut() |
888 | { | 888 | { |
889 | $this->expectException(\Exception::class); | 889 | $this->expectException(BookmarkNotFoundException::class); |
890 | $this->expectExceptionMessage('Not authorized'); | 890 | $this->expectExceptionMessage('The link you are trying to reach does not exist or has been deleted'); |
891 | 891 | ||
892 | $hash = smallHash('20141125_084734' . 6); | 892 | $hash = smallHash('20141125_084734' . 6); |
893 | 893 | ||