]> BookStack Code Mirror - bookstack/blob - tests/ErrorTest.php
Fix pt_BR translations
[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         $editor->name = 'tester';
13         $editor->save();
14
15         $this->actingAs($editor);
16         $notFound = $this->get('/fgfdngldfnotfound');
17         $notFound->assertStatus(404);
18         $notFound->assertDontSeeText('Log in');
19         $notFound->assertSeeText('tester');
20     }
21 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.