@@ -254,39 +254,26 @@ public function test(
254
254
foreach ([$ products [0 ], $ products [2 ]] as $ product ) {
255
255
$ createBlock ->getItemsBlock ()->selectItemAction ($ product , 'Move to Wish List ' );
256
256
}
257
-
258
257
$ createBlock ->updateItems ();
259
258
$ this ->assertItemsOrderedSectionContainsProducts ->processAssert ($ this ->orderCreateIndex , [$ products [1 ]]);
260
259
$ this ->assertProductsIsPresentInCustomerBackendWishlist
261
- ->processAssert (
262
- $ customer ,
263
- $ this ->customerIndexEdit ,
264
- [$ products [0 ], $ products [2 ]]
265
- );
260
+ ->processAssert ($ customer , $ this ->customerIndexEdit , [$ products [0 ], $ products [2 ]]);
266
261
$ this ->assertCartSectionIsEmptyOnBackendOrderPage ->processAssert ($ this ->orderCreateIndex );
267
262
$ this ->orderCreateIndex ->getSidebarWishlistBlock ()->selectItemToAddToOrder ($ products [0 ], 1 );
268
263
$ this ->orderCreateIndex ->getSidebarWishlistBlock ()->selectItemToAddToOrder ($ products [2 ], 1 );
269
264
$ this ->orderCreateIndex ->getBackendOrderSidebarBlock ()->updateChangesClick ();
270
265
$ createBlock ->waitOrderItemsGrid ();
271
266
$ this ->assertItemsOrderedSectionContainsProducts ->processAssert ($ this ->orderCreateIndex , $ products );
272
267
$ this ->assertProductsIsPresentInCustomerBackendWishlist
273
- ->processAssert (
274
- $ customer ,
275
- $ this ->customerIndexEdit ,
276
- [$ products [0 ], $ products [2 ]]
277
- );
268
+ ->processAssert ($ customer , $ this ->customerIndexEdit , [$ products [0 ], $ products [2 ]]);
278
269
$ this ->assertCartSectionIsEmptyOnBackendOrderPage ->processAssert ($ this ->orderCreateIndex );
279
270
foreach ($ products as $ product ) {
280
271
$ createBlock ->getItemsBlock ()->selectItemAction ($ product , 'Move to Shopping Cart ' );
281
272
}
282
273
$ createBlock ->updateItems ();
283
274
$ this ->assertItemsOrderedSectionOnBackendOrderIsEmpty ->processAssert ($ this ->orderCreateIndex );
284
275
$ this ->assertProductsIsPresentInCustomerBackendWishlist
285
- ->processAssert (
286
- $ customer ,
287
- $ this ->customerIndexEdit ,
288
- [$ products [0 ], $ products [2 ]]
289
- );
276
+ ->processAssert ($ customer , $ this ->customerIndexEdit , [$ products [0 ], $ products [2 ]]);
290
277
$ this ->assertCartSectionWithProductsOnBackendOrderPage ->processAssert ($ this ->orderCreateIndex , $ products );
291
278
foreach ([$ products [0 ], $ products [2 ]] as $ product ) {
292
279
$ this ->orderCreateIndex ->getBackendOrderSidebarBlock ()->selectItemToAddToOrder ($ product );
@@ -298,11 +285,7 @@ public function test(
298
285
[$ products [0 ], $ products [2 ]]
299
286
);
300
287
$ this ->assertProductsIsPresentInCustomerBackendWishlist
301
- ->processAssert (
302
- $ customer ,
303
- $ this ->customerIndexEdit ,
304
- [$ products [0 ], $ products [2 ]]
305
- );
288
+ ->processAssert ($ customer , $ this ->customerIndexEdit , [$ products [0 ], $ products [2 ]]);
306
289
$ this ->assertCartSectionWithProductsOnBackendOrderPage ->processAssert ($ this ->orderCreateIndex , [$ products [1 ]]);
307
290
$ this ->stepFactory ->create (
308
291
\Magento \Sales \Test \TestStep \FillBillingAddressStep::class,
0 commit comments