MenuBuilderTest::it_makes_a_menu_item()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Nwidart\Menus\Tests;
4
5
use Illuminate\Config\Repository;
6
use Nwidart\Menus\MenuBuilder;
7
use Nwidart\Menus\MenuItem;
8
9
class MenuBuilderTest extends BaseTestCase
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
10
{
11
    /** @test */
12
    public function it_makes_a_menu_item()
13
    {
14
        $builder = new MenuBuilder('main', app(Repository::class));
15
16
        self::assertInstanceOf(MenuItem::class, $builder->url('hello', 'world'));
17
    }
18
}
19