From: Dan Brown Date: Fri, 21 Sep 2018 14:24:29 +0000 (+0100) Subject: Updated 404 test to not fail based on random long name X-Git-Tag: v0.24.0~1^2~16^2~11^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/947/head?ds=inline Updated 404 test to not fail based on random long name --- diff --git a/tests/ErrorTest.php b/tests/ErrorTest.php index c9b5a0109..a5e4a4a5e 100644 --- a/tests/ErrorTest.php +++ b/tests/ErrorTest.php @@ -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'); } } \ No newline at end of file