diff --git a/app/code/Magento/Config/Test/Unit/Block/System/Config/DwstreeTest.php b/app/code/Magento/Config/Test/Unit/Block/System/Config/DwstreeTest.php index 3e6571114fbef4f7b84297acf8f6da36ecf4b30a..3f8b7596fd4a541eebe52c9f8e30168dc48b35ee 100644 --- a/app/code/Magento/Config/Test/Unit/Block/System/Config/DwstreeTest.php +++ b/app/code/Magento/Config/Test/Unit/Block/System/Config/DwstreeTest.php @@ -66,7 +66,7 @@ class DwstreeTest extends \PHPUnit_Framework_TestCase ); $this->object = $objectManager->getObject( - 'Magento\Config\Block\System\Config\Dwstree' , + 'Magento\Config\Block\System\Config\Dwstree', ['context' => $this->context] ); } @@ -81,11 +81,12 @@ class DwstreeTest extends \PHPUnit_Framework_TestCase { $this->requestMock->expects($this->any()) ->method('getParam') - ->will($this->returnValueMap( + ->will( + $this->returnValueMap( [ ['section', $section], ['website', $website['expected']['code']], - ['store', $store['expected']['code']], + ['store', $store['expected']['code']], ] ) ); diff --git a/app/code/Magento/Config/Test/Unit/Block/System/Config/Form/FieldsetTest.php b/app/code/Magento/Config/Test/Unit/Block/System/Config/Form/FieldsetTest.php index f8dcbb9f12863bd6d4340738a8e67aa5d89fa61b..e1d4f266467e194a77f43539f0eba25c647ae5c7 100644 --- a/app/code/Magento/Config/Test/Unit/Block/System/Config/Form/FieldsetTest.php +++ b/app/code/Magento/Config/Test/Unit/Block/System/Config/Form/FieldsetTest.php @@ -175,7 +175,7 @@ class FieldsetTest extends \PHPUnit_Framework_TestCase $this->userMock->expects($this->any())->method('getExtra')->willReturn($extra); $this->_helperMock->expects($this->any())->method('getScript')->will($this->returnArgument(0)); $fieldMock = $this->getMockBuilder('Magento\Framework\Data\Form\Element\Text') - ->setMethods(['getId', 'getTooltip', 'toHtml', 'getHtmlId' , 'getIsNested', 'getExpanded']) + ->setMethods(['getId', 'getTooltip', 'toHtml', 'getHtmlId', 'getIsNested', 'getExpanded']) ->disableOriginalConstructor() ->getMock(); $fieldMock->expects($this->any())->method('getId')->will($this->returnValue('test_field_id')); @@ -184,7 +184,7 @@ class FieldsetTest extends \PHPUnit_Framework_TestCase $fieldMock->expects($this->any())->method('getHtmlId')->willReturn('test_field_HTML_id'); $fieldSetMock = $this->getMockBuilder('Magento\Framework\Data\Form\Element\Fieldset') - ->setMethods(['getId', 'getTooltip', 'toHtml', 'getHtmlId' , 'getIsNested', 'getExpanded']) + ->setMethods(['getId', 'getTooltip', 'toHtml', 'getHtmlId', 'getIsNested', 'getExpanded']) ->disableOriginalConstructor() ->getMock(); $fieldSetMock->expects($this->any())->method('getId')->will($this->returnValue('test_fieldset_id'));