@@ -161,8 +161,10 @@ class View extends AbstractConfigureBlock
161
161
*/
162
162
public function getPriceBlock ()
163
163
{
164
- return $ this ->blockFactory ->create ('Magento\Catalog\Test\Block\Product\Price ' ,
165
- ['element ' => $ this ->_rootElement ->find ($ this ->priceBlock , Locator::SELECTOR_XPATH )]);
164
+ return $ this ->blockFactory ->create (
165
+ 'Magento\Catalog\Test\Block\Product\Price ' ,
166
+ ['element ' => $ this ->_rootElement ->find ($ this ->priceBlock , Locator::SELECTOR_XPATH )]
167
+ );
166
168
}
167
169
168
170
/**
@@ -174,8 +176,10 @@ public function getPriceBlock()
174
176
public function addToCart (FixtureInterface $ product )
175
177
{
176
178
/** @var \Magento\Checkout\Test\Block\Cart\Sidebar $miniCart */
177
- $ miniCart = $ this ->blockFactory ->create ('\Magento\Checkout\Test\Block\Cart\Sidebar ' ,
178
- ['element ' => $ this ->browser ->find ($ this ->miniCartBlock )]);
179
+ $ miniCart = $ this ->blockFactory ->create (
180
+ '\Magento\Checkout\Test\Block\Cart\Sidebar ' ,
181
+ ['element ' => $ this ->browser ->find ($ this ->miniCartBlock )]
182
+ );
179
183
/** @var CatalogProductSimple $product */
180
184
$ checkoutData = $ product ->getCheckoutData ();
181
185
@@ -301,9 +305,11 @@ public function getOptions(FixtureInterface $product)
301
305
$ dataConfig = $ product ->getDataConfig ();
302
306
$ typeId = isset ($ dataConfig ['type_id ' ]) ? $ dataConfig ['type_id ' ] : null ;
303
307
304
- return $ this ->hasRender ($ typeId ) ? $ this ->callRender ($ typeId ,
308
+ return $ this ->hasRender ($ typeId ) ? $ this ->callRender (
309
+ $ typeId ,
305
310
'getOptions ' ,
306
- ['product ' => $ product ]) : $ this ->getCustomOptionsBlock ()->getOptions ($ product );
311
+ ['product ' => $ product ]
312
+ ) : $ this ->getCustomOptionsBlock ()->getOptions ($ product );
307
313
}
308
314
309
315
/**
@@ -314,8 +320,10 @@ public function getOptions(FixtureInterface $product)
314
320
*/
315
321
public function getTierPrices ($ lineNumber = 1 )
316
322
{
317
- return $ this ->_rootElement ->find (str_replace ('%line-number% ' , $ lineNumber , $ this ->tierPricesSelector ),
318
- Locator::SELECTOR_XPATH )->getText ();
323
+ return $ this ->_rootElement ->find (
324
+ str_replace ('%line-number% ' , $ lineNumber , $ this ->tierPricesSelector ),
325
+ Locator::SELECTOR_XPATH
326
+ )->getText ();
319
327
}
320
328
321
329
/**
@@ -356,8 +364,10 @@ public function stockAvailability()
356
364
public function clickAddToCompare ()
357
365
{
358
366
/** @var \Magento\Backend\Test\Block\Messages $messageBlock */
359
- $ messageBlock = $ this ->blockFactory ->create ('Magento\Backend\Test\Block\Messages ' ,
360
- ['element ' => $ this ->browser ->find ($ this ->messageBlock )]);
367
+ $ messageBlock = $ this ->blockFactory ->create (
368
+ 'Magento\Backend\Test\Block\Messages ' ,
369
+ ['element ' => $ this ->browser ->find ($ this ->messageBlock )]
370
+ );
361
371
$ this ->_rootElement ->find ($ this ->clickAddToCompare , Locator::SELECTOR_CSS )->click ();
362
372
$ messageBlock ->waitSuccessMessage ();
363
373
}
0 commit comments