@@ -15,6 +15,6 @@ class SinglePageController extends Controller
{
$appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
- return view("landing")->with('appSettings', $appSettings);;
+ return view('landing')->with('appSettings', $appSettings);
}
@@ -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');
@@ -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');