Skip to content

Commit c805adc

Browse files
author
Cari Spruiell
committed
MAGETWO-85734: Sprint 5 Build Stabilization & PR
- refactor for code mess
1 parent 001283d commit c805adc

File tree

1 file changed

+2
-7
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Attribute

1 file changed

+2
-7
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Attribute/EditTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ class EditTest extends \PHPUnit\Framework\TestCase
8787
*/
8888
protected $resultPageFactory;
8989

90-
/**
91-
* @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
92-
*/
93-
protected $objectManager;
94-
9590
protected function setUp()
9691
{
9792
$this->request = $this->getMockBuilder(\Magento\Framework\App\RequestInterface::class)->getMock();
@@ -152,8 +147,8 @@ protected function setUp()
152147
$this->context->expects($this->any())->method('getResultPageFactory')->willReturn($this->resultPageFactory);
153148
$this->context->expects($this->any())->method('getSession')->willReturn($this->session);
154149

155-
$this->objectManager = new ObjectManager($this);
156-
$this->editController = $this->objectManager->getObject(
150+
$objectManager = new ObjectManager($this);
151+
$this->editController = $objectManager->getObject(
157152
\Magento\Catalog\Controller\Adminhtml\Product\Attribute\Edit::class,
158153
[
159154
'context' => $this->context,

0 commit comments

Comments
 (0)