Skip to content

Commit 73cfcb7

Browse files
Fix: APP_URL is no longer hardcoded into the test which caused a failure if it was changed in .env.
1 parent ddd021d commit 73cfcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/MenuTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testMenuIndex(){
2323
$menulist->save();
2424
$response = $this->actingAs($user)->get('/menu/menu');
2525
$response->assertSee('test2');
26-
$response->assertSee('<a class="btn btn-primary" href="http://localhost:8000/menu/element?menu=1">Show</a>');
26+
$response->assertSee('<a class="btn btn-primary" href="'.env('APP_URL', 'http://localhost:8000').'/menu/element?menu=1">Show</a>', false);
2727
$response->assertSee('Add new menu');
2828
$response->assertSee('Menus list');
2929
}

0 commit comments

Comments
 (0)