]> BookStack Code Mirror - bookstack/blobdiff - tests/PublicActionTest.php
settings.php: add missing french translation
[bookstack] / tests / PublicActionTest.php
index 6127e1cd40bdd8a878f6f219e1f2e622b54baf9e..6f8590d4b7b19f8a52d76381f2438527ac0e4b32 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php namespace Tests;
 
 class PublicActionTest extends BrowserKitTest
 {
@@ -80,4 +80,14 @@ class PublicActionTest extends BrowserKitTest
         ]);
     }
 
+    public function test_content_not_listed_on_404_for_public_users()
+    {
+        $page = \BookStack\Page::first();
+        $this->asAdmin()->visit($page->getUrl());
+        \Auth::logout();
+        view()->share('pageTitle', '');
+        $this->forceVisit('/cats/dogs/hippos');
+        $this->dontSee($page->name);
+    }
+
 }
\ No newline at end of file