File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,6 @@ class EditTest extends \PHPUnit\Framework\TestCase
87
87
*/
88
88
protected $ resultPageFactory ;
89
89
90
- /**
91
- * @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
92
- */
93
- protected $ objectManager ;
94
-
95
90
protected function setUp ()
96
91
{
97
92
$ this ->request = $ this ->getMockBuilder (\Magento \Framework \App \RequestInterface::class)->getMock ();
@@ -152,8 +147,8 @@ protected function setUp()
152
147
$ this ->context ->expects ($ this ->any ())->method ('getResultPageFactory ' )->willReturn ($ this ->resultPageFactory );
153
148
$ this ->context ->expects ($ this ->any ())->method ('getSession ' )->willReturn ($ this ->session );
154
149
155
- $ this -> objectManager = new ObjectManager ($ this );
156
- $ this ->editController = $ this -> objectManager ->getObject (
150
+ $ objectManager = new ObjectManager ($ this );
151
+ $ this ->editController = $ objectManager ->getObject (
157
152
\Magento \Catalog \Controller \Adminhtml \Product \Attribute \Edit::class,
158
153
[
159
154
'context ' => $ this ->context ,
You can’t perform that action at this time.
0 commit comments