]> BookStack Code Mirror - bookstack/blob - tests/ErrorTest.php
PSR2 fixes after running `./vendor/bin/phpcbf`
[bookstack] / tests / ErrorTest.php
1 <?php namespace Tests;
2
3 class ErrorTest extends TestCase
4 {
5
6     public function test_404_page_does_not_show_login()
7     {
8         // Due to middleware being handled differently this will not fail
9         // if our custom, middleware-loaded handler fails but this is here
10         // as a reminder and as a general check in the event of other issues.
11         $editor = $this->getEditor();
12         $this->actingAs($editor);
13         $notFound = $this->get('/fgfdngldfnotfound');
14         $notFound->assertStatus(404);
15         $notFound->assertDontSeeText('Log in');
16         $notFound->assertSeeText($editor->getShortName(9));
17     }
18 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.