File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
app/code/Magento/Wishlist/Test/Unit/Controller/Index Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
class UpdateTest extends TestCase
31
31
{
32
- /**
33
- * Wishlist item id
34
- *
35
- * @var int
36
- */
37
- private const ITEM_ID = 1 ;
32
+ private const STUB_ITEM_ID = 1 ;
38
33
39
- /**
40
- * Product qty for wishlist
41
- *
42
- * @var int
43
- */
44
- private const WISHLIST_PRODUCT_QTY = 21 ;
34
+ private const STUB_WISHLIST_PRODUCT_QTY = 21 ;
45
35
46
36
/**
47
37
* @var MockObject|Validator $formKeyValidatorMock
@@ -126,7 +116,9 @@ protected function setUp()
126
116
->method ('getMessageManager ' )
127
117
->willReturn ($ this ->messageManagerMock );
128
118
129
- $ this ->updateController = (new ObjectManagerHelper ($ this ))->getObject (
119
+ $ objectManager = new ObjectManagerHelper ($ this );
120
+
121
+ $ this ->updateController = $ objectManager ->getObject (
130
122
Update::class,
131
123
[
132
124
'context ' => $ this ->contextMock ,
@@ -286,11 +278,11 @@ public function getWishlistDataProvider(): array
286
278
[
287
279
[
288
280
[
289
- 'id ' => self ::ITEM_ID
281
+ 'id ' => self ::STUB_ITEM_ID
290
282
],
291
283
[
292
- 'qty ' => [self ::ITEM_ID => self ::WISHLIST_PRODUCT_QTY ],
293
- 'description ' => [self ::ITEM_ID => 'Description for item_id 1 ' ]
284
+ 'qty ' => [self ::STUB_ITEM_ID => self ::STUB_WISHLIST_PRODUCT_QTY ],
285
+ 'description ' => [self ::STUB_ITEM_ID => 'Description for item_id 1 ' ]
294
286
]
295
287
]
296
288
];
You can’t perform that action at this time.
0 commit comments