mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 19:32:29 +01:00
Updated 404 test to not fail based on random long name
This commit is contained in:
parent
b59e5942c8
commit
c8d893fac7
@ -9,10 +9,13 @@ class ErrorTest extends TestCase
|
||||
// if our custom, middleware-loaded handler fails but this is here
|
||||
// as a reminder and as a general check in the event of other issues.
|
||||
$editor = $this->getEditor();
|
||||
$editor->name = 'tester';
|
||||
$editor->save();
|
||||
|
||||
$this->actingAs($editor);
|
||||
$notFound = $this->get('/fgfdngldfnotfound');
|
||||
$notFound->assertStatus(404);
|
||||
$notFound->assertDontSeeText('Log in');
|
||||
$notFound->assertSeeText($editor->getShortName(9));
|
||||
$notFound->assertSeeText('tester');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user