Try to fix TravisCI failing on route test

This commit is contained in:
Bubka 2020-03-05 12:56:35 +01:00
parent 6a694280cd
commit 53ada0bfaa
3 changed files with 5 additions and 4 deletions

View File

@ -15,6 +15,6 @@ public function index()
{
$appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
return view("landing")->with('appSettings', $appSettings);;
return view('landing')->with('appSettings', $appSettings);
}
}

View File

@ -16,4 +16,4 @@
// });
// Route::get('twofaccount/{TwoFAccount}', 'TwoFAccountController@show');
Route::get('/{any}', 'SinglePageController@index')->where('any', '.*');
Route::get('/{any}', 'SinglePageController@index')->where('any', '.*')->name('landing');

View File

@ -14,9 +14,10 @@ class RouteTest extends TestCase
*/
public function testLandingViewIsReturned()
{
$response = $this->get('/');
$response = $this->get(route('landing', ['any' => '']));
$response->assertViewIs('landing');
$response->assertSuccessful()
->assertViewIs('landing');
}
}