Skip to content

Commit

Permalink
Update DocumentationSidebarTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 19, 2024
1 parent 6b275dd commit c7800e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit c7800e5

Please sign in to comment.