Skip to content

Commit f49fe71

Browse files
committed
magento/graphql-ce#977: [Test coverage] Cover exceptions in AssignShippingAddressToCart, AssignBillingAddressToCart
1 parent 5bf67e5 commit f49fe71

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ public function testWithInvalidBillingAddressInput()
928928
}
929929
}
930930
QUERY;
931-
self::expectExceptionMessage('The address failed to save. Verify the address and try again.');
931+
$this->expectExceptionMessage('The address failed to save. Verify the address and try again.');
932932
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
933933
}
934934

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ public function testWithInvalidShippingAddressesInput()
748748
}
749749
}
750750
QUERY;
751-
self::expectExceptionMessage('The address failed to save. Verify the address and try again.');
751+
$this->expectExceptionMessage('The address failed to save. Verify the address and try again.');
752752
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
753753
}
754754

@@ -894,7 +894,6 @@ public function testSetNewShippingAddressWithNotSaveInAddressBook()
894894
}
895895
}
896896

897-
898897
/**
899898
* Verify the all the whitelisted fields for a New Address Object
900899
*

0 commit comments

Comments
 (0)