1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Fixed entities wrongly visible on 404

Also ensured header state as expected on 404.
In reference to BookStackApp/website#9
This commit is contained in:
Dan Brown
2017-02-05 21:19:29 +00:00
parent 80f844139c
commit 6638ee47d3
5 changed files with 41 additions and 20 deletions

View File

@ -80,4 +80,14 @@ class PublicActionTest extends TestCase
]);
}
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);
}
}