Skip to content

Commit e9338a9

Browse files
committed
MTA-3977: Create auto test for Checkout using PayPal Braintree button if Require Customer's Billing Address = Yes
1 parent a1331cc commit e9338a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderBillingAndShippingAddressesAreDifferent.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ public function processAssert(
2828
$orderBillingAddress = $salesOrderView->getAddressesBlock()->getCustomerBillingAddress();
2929
$orderShippingAddress = $salesOrderView->getAddressesBlock()->getCustomerShippingAddress();
3030

31-
\PHPUnit_Framework_Assert::assertFalse(
32-
$orderBillingAddress == $orderShippingAddress,
33-
'Billing and shipping addresses on order page are the same.'
31+
\PHPUnit_Framework_Assert::assertNotEquals(
32+
$orderBillingAddress,
33+
$orderShippingAddress,
34+
"Billing and shipping addresses on order page are the same but shouldn't."
3435
);
3536
}
3637

0 commit comments

Comments
 (0)