aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-28 13:22:40 +0100
committerGitHub <noreply@github.com>2020-10-28 13:22:40 +0100
commitd2bb40cc7ca2a7f9c2403087016a0050a7113e07 (patch)
tree9c89e229f0d1ea98770b1477081704d436dbc49c /tests
parent06734af130e52eec5cb1fa51b26edebbfa4bc798 (diff)
parent156061d445fd23d033a52f84954484a3349c988a (diff)
downloadShaarli-d2bb40cc7ca2a7f9c2403087016a0050a7113e07.tar.gz
Shaarli-d2bb40cc7ca2a7f9c2403087016a0050a7113e07.tar.zst
Shaarli-d2bb40cc7ca2a7f9c2403087016a0050a7113e07.zip
Merge pull request #1613 from ArthurHoaro/hotfix/404-not-authorized
Raise 404 error instead of 500 if permalink access is denied
Diffstat (limited to 'tests')
-rw-r--r--tests/bookmark/BookmarkFileServiceTest.php4
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