Skip to content

Commit 431ff80

Browse files
author
Aliaksei Yakimovich2
committed
MAGETWO-88965: Magento\Test\Legacy\LayoutTest is failing for B2B
- Fixed issues related to static test failures;
1 parent 4a28abb commit 431ff80

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Column/Multistore.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ class Multistore extends \Magento\Backend\Block\Widget\Grid\Column
1717
/**
1818
* @param \Magento\Backend\Block\Template\Context $context
1919
* @param array $data
20+
* @param array $additionalRendererTypes
2021
*/
21-
public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = [])
22-
{
22+
public function __construct(
23+
\Magento\Backend\Block\Template\Context $context,
24+
array $data = [],
25+
array $additionalRendererTypes = []
26+
) {
2327
parent::__construct($context, $data);
28+
$this->_rendererTypes = array_merge($this->_rendererTypes, $additionalRendererTypes);
2429
}
2530

2631
/**

dev/tests/static/testsuite/Magento/Test/Legacy/LayoutTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Coverage of obsolete nodes in layout
9-
*/
107
namespace Magento\Test\Legacy;
118

129
use Magento\Framework\Component\ComponentRegistrar;
1310

11+
/**
12+
* Coverage of obsolete nodes in layout
13+
*/
1414
class LayoutTest extends \PHPUnit\Framework\TestCase
1515
{
1616
/**
@@ -356,8 +356,6 @@ public function getAllowedActionNodeMethods()
356356
'unsetChildren',
357357
'updateButton',
358358
'setIsProductListingContext',
359-
'checkCompanyStatus', // MAGETWO-88965
360-
'setRendererType', // MAGETWO-88965
361359
];
362360
}
363361
}

0 commit comments

Comments
 (0)