Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shengslogar committed May 23, 2021
1 parent c798236 commit 9948081
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TemplatesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ public function testView($view)

public function testCanResolveFacade()
{
resolve('breadcrumbs')->for('foo', function ($trail, $category) {
$this->expectNotToPerformAssertions();

\Breadcrumbs::for('foo', function ($trail, $category) {
$trail->parent('blog');
$trail->push($category->title, url("blog/category/{$category->id}"));
});
}

public function testCanReferenceDirectly()
public function testCanResolveDirectly()
{
$this->expectNotToPerformAssertions();

\Diglactic\Breadcrumbs\Breadcrumbs::for('bar', function (\Diglactic\Breadcrumbs\Generator $trail) {
$trail->parent('blog');
$trail->push('Bar', 'some/path');
Expand Down

0 comments on commit 9948081

Please sign in to comment.