diff --git a/packages/framework/tests/Feature/Services/DocumentationSidebarTest.php b/packages/framework/tests/Feature/Services/DocumentationSidebarTest.php index 4d09e812e2c..ed2df0ba297 100644 --- a/packages/framework/tests/Feature/Services/DocumentationSidebarTest.php +++ b/packages/framework/tests/Feature/Services/DocumentationSidebarTest.php @@ -114,7 +114,7 @@ public function testSidebarItemPriorityCanBeSetInFrontMatter() { $this->makePage('foo', ['navigation.priority' => 25]); - $this->assertEquals(25, DocumentationSidebar::create()->getItems()->first()->priority); + $this->assertEquals(25, DocumentationSidebar::create()->getItems()->first()->getPriority()); } public function testSidebarItemPrioritySetInConfigOverridesFrontMatter() @@ -123,7 +123,7 @@ public function testSidebarItemPrioritySetInConfigOverridesFrontMatter() Config::set('docs.sidebar_order', ['foo']); - $this->assertEquals(25, DocumentationSidebar::create()->getItems()->first()->priority); + $this->assertEquals(25, DocumentationSidebar::create()->getItems()->first()->getPriority()); } public function testSidebarPrioritiesCanBeSetInBothFrontMatterAndConfig()