9 use Magento\Mtf\Fixture\FixtureFactory;
10 use Magento\Mtf\TestStep\TestStepInterface;
11 use Magento\Customer\Test\Fixture\Address;
12 use Magento\Checkout\Test\Page\CheckoutOnepage;
25 private $checkoutOnepage;
32 private $shippingAddresses;
44 private $isShippingAvailable;
51 private $shippingMethod;
63 CheckoutOnepage $checkoutOnepage,
64 FixtureFactory $fixtureFactory,
66 array $shippingMethod,
67 array $shippingAddresses,
68 array $clearShippingAddress,
69 array $isShippingAvailable
71 $this->checkoutOnepage = $checkoutOnepage;
72 $this->assertRate = $assertRate;
74 foreach ($shippingAddresses as
$address) {
76 $this->shippingAddresses[] = $fixtureFactory->createByCode(
'address', [
'data' =>
$data]);
78 $this->isShippingAvailable = $isShippingAvailable;
91 $this->assertRate->processAssert(
92 $this->checkoutOnepage,
93 $this->shippingMethod,
94 $this->isShippingAvailable[$key]
__construct(CheckoutOnepage $checkoutOnepage, FixtureFactory $fixtureFactory, AssertCityBasedShippingRateChanged $assertRate, array $shippingMethod, array $shippingAddresses, array $clearShippingAddress, array $isShippingAvailable)