diff --git a/tests/ArbitratorTest.php b/tests/ArbitratorTest.php index be36a7d..646136a 100644 --- a/tests/ArbitratorTest.php +++ b/tests/ArbitratorTest.php @@ -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();