Skip to content

Commit 3825635

Browse files
committed
Fix test
1 parent a6a6f30 commit 3825635

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/MenuBar/MenuBarTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3+
use Native\Laravel\Facades\Menu;
34
use Native\Laravel\Facades\MenuBar;
4-
use Native\Laravel\Menu\Menu;
55

66
it('menubar with create', function () {
77
config()->set('nativephp-internal.api_url', 'https://jsonplaceholder.typicode.com/todos/1');
@@ -13,7 +13,10 @@
1313
->icon('nativephp.png')
1414
->url('https://github.com/milwad-dev')
1515
->withContextMenu(
16-
Menu::new()->label('My Application')->quit(),
16+
Menu::make(
17+
Menu::label('My Application'),
18+
Menu::quit(),
19+
),
1720
);
1821
$menuBarArray = $menuBar->toArray();
1922

0 commit comments

Comments
 (0)