From f49fe7195f7082f5153da92318bc7ab974e0beb0 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Tue, 15 Oct 2019 08:22:24 -0500 Subject: [PATCH] magento/graphql-ce#977: [Test coverage] Cover exceptions in AssignShippingAddressToCart, AssignBillingAddressToCart --- .../GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php | 2 +- .../GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php index 771ce8391ec0..d4f23854378f 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php @@ -928,7 +928,7 @@ public function testWithInvalidBillingAddressInput() } } QUERY; - self::expectExceptionMessage('The address failed to save. Verify the address and try again.'); + $this->expectExceptionMessage('The address failed to save. Verify the address and try again.'); $this->graphQlMutation($query, [], '', $this->getHeaderMap()); } diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php index f5f9d57ea96f..8b1b678b0b3a 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php @@ -748,7 +748,7 @@ public function testWithInvalidShippingAddressesInput() } } QUERY; - self::expectExceptionMessage('The address failed to save. Verify the address and try again.'); + $this->expectExceptionMessage('The address failed to save. Verify the address and try again.'); $this->graphQlMutation($query, [], '', $this->getHeaderMap()); } @@ -894,7 +894,6 @@ public function testSetNewShippingAddressWithNotSaveInAddressBook() } } - /** * Verify the all the whitelisted fields for a New Address Object *