diff --git a/routes/api.php b/routes/api.php index 6b382348..4a269e85 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,9 +1,7 @@ name('product.onSaleInvert'); Route::get('/product/live/invert/{id}', [ProductApiController::class, 'liveInvert'])->name('product.liveInvert'); -//campaign flash sale -Route::get('/flash-sale/all', [FlashSaleApiController::class, 'all'])->name('flashSale.all'); - //orders api Route::get('/order/all', [OrderApiController::class, 'all'])->name('order.all'); diff --git a/routes/web.php b/routes/web.php index 3a0ef851..1a8bf341 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6,7 +6,6 @@ use App\Http\Controllers\HomeController; use App\Http\Controllers\MyOrderController; use App\Http\Controllers\User\Catalog; -use App\Http\Controllers\User\DirectBuy; use App\Http\Controllers\User\Shop; use App\Http\Controllers\User\ShowProduct; use App\Http\Controllers\UserController; diff --git a/tests/Feature/AdminTest.php b/tests/Feature/AdminTest.php index b83436af..032ba1b4 100644 --- a/tests/Feature/AdminTest.php +++ b/tests/Feature/AdminTest.php @@ -19,12 +19,13 @@ public function adminsAreRedirectedToHomeAfterLogin() Artisan::call('db:seed'); // login as admin $response = $this->from('/login')->post('/login', [ - 'email' => 'admin@admin.com', - 'password' => 'password' + 'email' => 'admin@2023.laravelconf.tw', + 'password' => 'password', ]); $this->assertTrue(Auth::check()); - $response->assertStatus(302); - $response->assertRedirect('/home'); + + $response->assertStatus(302) + ->assertRedirect('/home'); } }