Skip to content

Commit c8d893f

Browse files
committed
Updated 404 test to not fail based on random long name
1 parent b59e594 commit c8d893f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/ErrorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ public function test_404_page_does_not_show_login()
99
// if our custom, middleware-loaded handler fails but this is here
1010
// as a reminder and as a general check in the event of other issues.
1111
$editor = $this->getEditor();
12+
$editor->name = 'tester';
13+
$editor->save();
14+
1215
$this->actingAs($editor);
1316
$notFound = $this->get('/fgfdngldfnotfound');
1417
$notFound->assertStatus(404);
1518
$notFound->assertDontSeeText('Log in');
16-
$notFound->assertSeeText($editor->getShortName(9));
19+
$notFound->assertSeeText('tester');
1720
}
1821
}

0 commit comments

Comments
 (0)