From a23d2669fd162017dd0b70fbe3e662008a08dc5a Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 27 Mar 2024 20:49:22 +0100 Subject: [PATCH] Update NavigationItemTest.php --- packages/framework/tests/Unit/NavigationItemTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/framework/tests/Unit/NavigationItemTest.php b/packages/framework/tests/Unit/NavigationItemTest.php index 19f4f22f0c1..e0a669adf9a 100644 --- a/packages/framework/tests/Unit/NavigationItemTest.php +++ b/packages/framework/tests/Unit/NavigationItemTest.php @@ -279,7 +279,7 @@ public function testDropdownFacade() $item = NavigationGroup::create('foo'); $this->assertSame('foo', $item->getLabel()); - $this->assertSame([], $item->getItems()); + $this->assertSame([], $item->getItems()->all()); $this->assertSame(999, $item->getPriority()); } @@ -290,7 +290,7 @@ public function testDropdownFacadeWithChildren() ]; $item = NavigationGroup::create('foo', $children); - $this->assertSame($children, $item->getItems()); + $this->assertSame($children, $item->getItems()->all()); $this->assertSame(999, $item->getPriority()); }