Code Duplication    Length = 6-7 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

@@ 310-315 (lines=6) @@
307
            $factory->title = 'Index Page';
308
            $factory->url = url('/');
309
        });
310
        $builder->create('group', SubMenu::class, function(SubMenuFactory $factory) {
311
            $factory->builder->create('one', Link::class, function(LinkFactory $factory) {
312
                $factory->title = 'One';
313
                $factory->url = url('/one');
314
            });
315
        });
316
        
317
        $this->assertEquals($this->getStub('another_menu.html'), $builder->render('another'));
318