Let's say I have a group of routes which are protected by a middleware:
Route::group(['middleware' => 'verified'], function () {
Route::get('/profile', 'ProfileController@show')->name('profile.show');
Route::get('/settings', 'SettingsController@show')->name('settings.show');
});
How can I test that these routes are protected by verified
middleware? If I write those tests, are they considered as feature tests or unit tests?
Aucun commentaire:
Enregistrer un commentaire