Code Duplication    Length = 14-15 lines in 2 locations

src/Kunstmaan/NodeBundle/Tests/unit/Helper/Menu/ActionsMenuBuilderTest.php 2 locations

@@ 71-85 (lines=15) @@
68
        return $emMock;
69
    }
70
71
    public function testCreateSubActionsMenu()
72
    {
73
        $nodeTranslation = new NodeTranslation();
74
        $nodeTranslation->setNode(new Node());
75
76
        $nodeVersion = new NodeVersion();
77
        $nodeVersion->setNodeTranslation($nodeTranslation);
78
79
        $this->builder->setActiveNodeVersion($nodeVersion);
80
81
        $menu = $this->builder->createSubActionsMenu();
82
        $this->assertNotNull($menu->getChild('subaction.versions'));
83
84
        $this->assertEquals('page-sub-actions', $menu->getChildrenAttribute('class'));
85
    }
86
87
    public function testCreateActionsMenuDraft()
88
    {
@@ 179-192 (lines=14) @@
176
        $this->assertEquals('page-main-actions js-auto-collapse-buttons', $menu->getChildrenAttribute('class'));
177
    }
178
179
    public function testCreateTopActionsMenu()
180
    {
181
        $nodeTranslation = new NodeTranslation();
182
        $nodeTranslation->setNode(new Node());
183
184
        $nodeVersion = new NodeVersion();
185
        $nodeVersion->setNodeTranslation($nodeTranslation);
186
187
        $this->builder->setActiveNodeVersion($nodeVersion);
188
189
        $menu = $this->builder->createTopActionsMenu();
190
        $this->assertEquals('page-main-actions page-main-actions--top', $menu->getChildrenAttribute('class'));
191
        $this->assertEquals('page-main-actions-top', $menu->getChildrenAttribute('id'));
192
    }
193
194
    public function testSetGetActiveNodeVersion()
195
    {