3 class ErrorTest extends TestCase
6 public function test_404_page_does_not_show_login()
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';
15 $this->actingAs($editor);
16 $notFound = $this->get('/fgfdngldfnotfound');
17 $notFound->assertStatus(404);
18 $notFound->assertDontSeeText('Log in');
19 $notFound->assertSeeText('tester');