Skip to content

Commit

Permalink
Update to expect pretty labels
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 20, 2024
1 parent 18e2511 commit 385445f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/framework/tests/Unit/NavItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function testForLink()
$item = NavItem::forLink('foo', 'bar');

$this->assertEquals(new ExternalRoute('foo'), $item->getDestination());
$this->assertSame('bar', $item->getLabel());
$this->assertSame('Bar', $item->getLabel());
$this->assertSame(500, $item->getPriority());
}

Expand All @@ -201,7 +201,7 @@ public function testForRoute()
$item = NavItem::forRoute($route, 'foo');

$this->assertSame($route, $item->getDestination());
$this->assertSame('foo', $item->getLabel());
$this->assertSame('Foo', $item->getLabel());
$this->assertSame(999, $item->getPriority());
}

Expand All @@ -211,7 +211,7 @@ public function testForIndexRoute()
$item = NavItem::forRoute($route, 'foo');

$this->assertSame($route, $item->getDestination());
$this->assertSame('foo', $item->getLabel());
$this->assertSame('Foo', $item->getLabel());
$this->assertSame(0, $item->getPriority());
}

Expand Down Expand Up @@ -265,7 +265,7 @@ public function testDropdownFacade()
{
$item = NavItem::dropdown('foo', []);

$this->assertSame('foo', $item->getLabel());
$this->assertSame('Foo', $item->getLabel());
$this->assertSame([], $item->getChildren());
$this->assertSame(999, $item->getPriority());
}
Expand Down

0 comments on commit 385445f

Please sign in to comment.