@@ 108-112 (lines=5) @@ | ||
105 | $this->assertNotNull($menu->getChild('action.preview')); |
|
106 | $this->assertNull($menu->getChild('action.save')); |
|
107 | ||
108 | if ((null !== $nodeTranslation->getNode()->getParent() || $nodeTranslation->getNode()->getChildren()->isEmpty())) { |
|
109 | $this->assertNotNull($menu->getChild('action.delete')); |
|
110 | } else { |
|
111 | $this->assertNull($menu->getChild('action.delete')); |
|
112 | } |
|
113 | ||
114 | $this->assertEquals('page-main-actions js-auto-collapse-buttons', $menu->getChildrenAttribute('class')); |
|
115 | } |
|
@@ 135-139 (lines=5) @@ | ||
132 | $this->assertNotNull($menu->getChild('action.preview')); |
|
133 | $this->assertNotNull($menu->getChild('action.publish')); |
|
134 | $this->assertNull($menu->getChild('action.unpublish')); |
|
135 | if ((null !== $nodeTranslation->getNode()->getParent() || $nodeTranslation->getNode()->getChildren()->isEmpty())) { |
|
136 | $this->assertNotNull($menu->getChild('action.delete')); |
|
137 | } else { |
|
138 | $this->assertNull($menu->getChild('action.delete')); |
|
139 | } |
|
140 | ||
141 | $nodeTranslation->setOnline(true); |
|
142 | $menu = $this->builder->createActionsMenu(); |
|
@@ 149-153 (lines=5) @@ | ||
146 | $this->assertNotNull($menu->getChild('action.preview')); |
|
147 | $this->assertNull($menu->getChild('action.publish')); |
|
148 | $this->assertNotNull($menu->getChild('action.unpublish')); |
|
149 | if ((null !== $nodeTranslation->getNode()->getParent() || $nodeTranslation->getNode()->getChildren()->isEmpty())) { |
|
150 | $this->assertNotNull($menu->getChild('action.delete')); |
|
151 | } else { |
|
152 | $this->assertNull($menu->getChild('action.delete')); |
|
153 | } |
|
154 | ||
155 | $this->assertEquals('page-main-actions js-auto-collapse-buttons', $menu->getChildrenAttribute('class')); |
|
156 | } |