Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ff65ca8

Browse files
author
Dmytro Yushkin
committed
MAGETWO-62807: Case information block on order details page in admin panel
- Fixed integration tests
1 parent de2fcaf commit ff65ca8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Block/Adminhtml/CaseInfoTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,13 @@ public function testButtonsForApprovedCase()
170170
*/
171171
private function getBlockContents()
172172
{
173+
$this->layout->addContainer('order_additional_info', 'Container');
174+
173175
/** @var CaseInfo $block */
174-
$block = $this->layout->createBlock(CaseInfo::class, 'order_case_info', ['context' => $this->getContext()]);
176+
$block = $this->layout->addBlock(CaseInfo::class, 'order_case_info', 'order_additional_info');
177+
$block->setAttribute('context', $this->getContext());
175178
$block->setTemplate('Magento_Signifyd::case_info.phtml');
176179

177-
/** @var Template $parent */
178-
$parent = $this->layout->createBlock(Template::class, 'order_additional_info');
179-
$parent->setChild('order_case_info', $block);
180-
181180
return $block->toHtml();
182181
}
183182

0 commit comments

Comments
 (0)