Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Sep 8, 2024
1 parent 4de183a commit f2f8ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ArbitratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function testBootRegisterMenuResource(): void
View::callComposer(\view('platform::dashboard'));

/** @var Collection $menu */
$menu = app(\Orchid\Platform\Dashboard::class)->menu[\Orchid\Platform\Dashboard::MENU_MAIN];
$menu = app(\Orchid\Platform\Dashboard::class)
->menu
->flatten();

$existName = $menu->filter(function (Menu $menu) {
return $menu->get('name') === PostResource::label();
Expand Down

0 comments on commit f2f8ef0

Please sign in to comment.