Code Duplication    Length = 7-8 lines in 2 locations

tests/MenuTest.php 1 location

@@ 93-99 (lines=7) @@
90
            $factory->text = null;
91
            $factory->attributes->put('class', 'deliver');
92
        });
93
        $builder->create('settings', SubMenu::class, function(SubMenuFactory $factory) {
94
            $factory->title = 'Index';
95
            $factory->builder->create('some', Link::class, function(LinkFactory $factory) {
96
                $factory->title = 'Some setting';
97
                $factory->url = '/settings/some';
98
            });
99
        });
100
        $builder->create('deliver_2', Text::class, function(TextFactory $factory) {
101
            $factory->text = null;
102
            $factory->attributes->put('class', 'deliver');

tests/BuilderTest.php 1 location

@@ 320-327 (lines=8) @@
317
            $factory->title = 'Index Page';
318
            $factory->url = url('/');
319
        });
320
        $builder->create('group', SubMenu::class, function(SubMenuFactory $factory) {
321
            $factory->builder->create('one', Link::class, function(LinkFactory $factory) {
322
                $factory->title = 'One';
323
                $factory->url = url('/one');
324
            });
325
326
            return $factory->build();
327
        });
328
        
329
        $this->assertEquals($this->getStub('another_menu.html'), $builder->render('another'));
330