8000 Menu improvements by simonhamp · Pull Request #423 · NativePHP/laravel · GitHub
[go: up one dir, main page]

Skip to content

Menu improvements #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Dec 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
simonhamp committed Nov 20, 2024
commit 382563594f0dd0652038baf887aa4f966f739ccf
7 changes: 5 additions & 2 deletions tests/MenuBar/MenuBarTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Native\Laravel\Facades\Menu;
use Native\Laravel\Facades\MenuBar;
use Native\Laravel\Menu\Menu;

it('menubar with create', function () {
config()->set('nativephp-internal.api_url', 'https://jsonplaceholder.typicode.com/todos/1');
Expand All @@ -13,7 +13,10 @@
->icon('nativephp.png')
->url('https://github.com/milwad-dev')
->withContextMenu(
Menu::new()->label('My Application')->quit(),
Menu::make(
Menu::label('My Application'),
Menu::quit(),
),
);
$menuBarArray = $menuBar->toArray();

Expand Down
Loading
0