Skip to content

Commit

Permalink
Update MenuTest.stub
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbmaulana authored Oct 17, 2023
1 parent 71a7375 commit 842365b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions stubs/tests/Feature/Setting/Menu/MenuTest.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -29,15 +29,15 @@ 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",
"icon" => "md-home",
"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",
Expand All @@ -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",
Expand Down

0 comments on commit 842365b

Please sign in to comment.