From 842365ba1511898d9537acbf002284020c731ef0 Mon Sep 17 00:00:00 2001 From: Hasby Maulana Date: Tue, 17 Oct 2023 10:58:02 +0700 Subject: [PATCH] Update MenuTest.stub --- .../tests/Feature/Setting/Menu/MenuTest.stub | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stubs/tests/Feature/Setting/Menu/MenuTest.stub b/stubs/tests/Feature/Setting/Menu/MenuTest.stub index bd70ba5..55af0bb 100644 --- a/stubs/tests/Feature/Setting/Menu/MenuTest.stub +++ b/stubs/tests/Feature/Setting/Menu/MenuTest.stub @@ -20,7 +20,7 @@ class MenuTest extends TestCase $this->test_users_can_update_menu(); - $data = $this->get(config("adminer.route.user") ?? "api"."/menus"); + $data = $this->get(/* config("adminer.route.user") ?? */"api"."/menus"); $data->assertStatus(200); } @@ -29,7 +29,7 @@ class MenuTest extends TestCase */ public function test_users_can_update_menu() { - $this->post(config("adminer.route.admin") ?? "api/admin"."/bars/headernavbar/menus", [ + $this->post(config(/* "adminer.route.admin") ?? */"api/admin"."/bars/headernavbar/menus", [ "menu" => "home", "category" => "base", @@ -37,7 +37,7 @@ class MenuTest extends TestCase "title" => "Home", "description" => "Home Page", ]); - $this->post(config("adminer.route.admin") ?? "api/admin"."/bars/headernavbar/menus", [ + $this->post(/* config("adminer.route.admin") ?? */"api/admin"."/bars/headernavbar/menus", [ "menu" => "profile", "category" => "base", @@ -49,30 +49,30 @@ class MenuTest extends TestCase $user = $this->user(); $this->actingAs($user); - $this->post(config("adminer.route.user") ?? "api"."/menus", [ + $this->post(/* config("adminer.route.user") ?? */"api"."/menus", [ "bar" => "headernavbar", "menu" => "home", ]); - $this->delete(config("adminer.route.user") ?? "api"."/menus/headernavbar/home"); - $this->post(config("adminer.route.user") ?? "api"."/menus", [ + $this->delete(/* config("adminer.route.user") ?? */"api"."/menus/headernavbar/home"); + $this->post(/* config("adminer.route.user") ?? */"api"."/menus", [ "bar" => "headernavbar", "menu" => "profile", ]); - $this->post(config("adminer.route.user") ?? "api"."/menus", [ + $this->post(/* config("adminer.route.user") ?? */"api"."/menus", [ "bar" => "headernavbar", "menu" => "profile.home", ]); - $this->delete(config("adminer.route.user") ?? "api"."/menus/headernavbar/profile.home"); + $this->delete(/* config("adminer.route.user") ?? */"api"."/menus/headernavbar/profile.home"); - $this->post(config("adminer.route.user") ?? "api"."/menus", [ + $this->post(/* config("adminer.route.user") ?? */"api"."/menus", [ "bar" => "headernavbar", "menu" => "home", ]); - $data = $this->put(config("adminer.route.user") ?? "api"."/menus", [ + $data = $this->put(/* config("adminer.route.user") ?? */"api"."/menus", [ "bar" => "headernavbar", "menu_from" => "home",