MenuBuilderTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_makes_a_menu_item() 0 6 1
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