mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-30 18:26:14 +02:00
Try to fix TravisCI failing on route test
This commit is contained in:
parent
6a694280cd
commit
53ada0bfaa
@ -15,6 +15,6 @@ public function index()
|
|||||||
{
|
{
|
||||||
$appSettings = \Illuminate\Support\Facades\DB::table('options')->pluck('value', 'key')->toJson();
|
$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('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()
|
public function testLandingViewIsReturned()
|
||||||
{
|
{
|
||||||
$response = $this->get('/');
|
$response = $this->get(route('landing', ['any' => '']));
|
||||||
|
|
||||||
$response->assertViewIs('landing');
|
$response->assertSuccessful()
|
||||||
|
->assertViewIs('landing');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user