Skip to content

Commit e2e882f

Browse files
author
Igor Melnikov
committed
MAGETWO-69137: upgrading Magento2 Project PHPUnit version to latest
- refactor tests
1 parent cca9488 commit e2e882f

File tree

1 file changed

+1
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Config/Block/System/Config

1 file changed

+1
-2
lines changed

dev/tests/integration/testsuite/Magento/Config/Block/System/Config/FormTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ public function testInitFieldsUseDefaultCheckbox(
9898
\Magento\Backend\App\Area\FrontNameResolver::AREA_CODE
9999
);
100100
$form = $this->_formFactory->create();
101-
$fieldset = $this->_formFactory->create()
102-
->addFieldset($this->_section->getId() . '_' . $this->_group->getId(), []);
101+
$fieldset = $form->addFieldset($this->_section->getId() . '_' . $this->_group->getId(), []);
103102

104103
/* @TODO Eliminate stub by proper mock / config fixture usage */
105104
/** @var $block \Magento\Config\Block\System\Config\FormStub */

0 commit comments

Comments
 (0)