Skip to content

Commit

Permalink
Preparing basic builder test
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Aug 4, 2016
1 parent 6d8a903 commit 62fbd87
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/MenuBuilderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Nwidart\Menus\Tests;

use Illuminate\Config\Repository;
use Nwidart\Menus\MenuBuilder;
use Nwidart\Menus\MenuItem;

class MenuBuilderTest extends BaseTestCase
{
/** @test */
public function it_makes_a_menu_item()
{
$builder = new MenuBuilder('main', app(Repository::class));

self::assertInstanceOf(MenuItem::class, $builder->url('hello', 'world'));
}
}

0 comments on commit 62fbd87

Please sign in to comment.