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 $this->actingAs($editor);
13 $notFound = $this->get('/fgfdngldfnotfound');
14 $notFound->assertStatus(404);
15 $notFound->assertDontSeeText('Log in');
16 $notFound->assertSeeText($editor->getShortName(9));