8 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Customer\Test\Fixture\Address;
27 SalesOrderView $salesOrderView,
33 $selectedShippingAddress = $this->objectManager->create(
38 $selectedBillingAddress = $this->objectManager->create(
43 $salesOrderView->open([
'order_id' => $orderId]);
44 $orderBillingAddress = $salesOrderView->getAddressesBlock()->getCustomerBillingAddress();
45 $orderShippingAddress = $salesOrderView->getAddressesBlock()->getCustomerShippingAddress();
47 \PHPUnit\Framework\Assert::assertTrue(
48 $selectedBillingAddress == $orderBillingAddress && $selectedShippingAddress == $orderShippingAddress,
49 'Billing and shipping addresses from the address book and from the order page are not the same.' 60 return 'Billing and shipping addresses from the address book and from the order page are the same.';
processAssert(SalesOrderView $salesOrderView, $orderId, Address $shippingAddress, Address $billingAddress)