diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddSimpleProductToCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddSimpleProductToCartTest.php index aca13e53875dd..e1b93e0bdb857 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddSimpleProductToCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddSimpleProductToCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Customer; +use Exception; use Magento\Framework\Exception\AuthenticationException; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTokenServiceInterface; @@ -53,11 +54,117 @@ public function testAddSimpleProductToCart() self::assertEquals($sku, $response['addSimpleProductsToCart']['cart']['items'][0]['product']['sku']); } + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddSimpleProductToCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddSimpleProductToCartIfCartIdIsEmpty() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddSimpleProductToCartIfCartItemsAreMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddSimpleProductToCartIfCartItemsAreEmpty() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + /** * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testAddProductToNonExistentCart() @@ -74,7 +181,7 @@ public function testAddProductToNonExistentCart() * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a product with SKU "simple_product" */ public function testNonExistentProductToCart() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddVirtualProductToCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddVirtualProductToCartTest.php index 86573dcde2e35..ae0208ca3101b 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddVirtualProductToCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AddVirtualProductToCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Customer; +use Exception; use Magento\Framework\Exception\AuthenticationException; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTokenServiceInterface; @@ -53,11 +54,117 @@ public function testAddVirtualProductToCart() self::assertEquals($sku, $response['addVirtualProductsToCart']['cart']['items'][0]['product']['sku']); } + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddVirtualProductToCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddVirtualProductToCartIfCartIdIsEmpty() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddVirtualProductToCartIfCartItemsAreMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddVirtualProductToCartIfCartItemsAreEmpty() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + /** * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/virtual_product.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testAddVirtualToNonExistentCart() @@ -74,7 +181,7 @@ public function testAddVirtualToNonExistentCart() * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a product with SKU "virtual_product" */ public function testNonExistentProductToCart() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCartTest.php index 99e1c0bbd1579..77c69ee3e2b83 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Customer; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTokenServiceInterface; use Magento\TestFramework\Helper\Bootstrap; @@ -94,10 +95,41 @@ public function testGetAnotherCustomerCart() $this->graphQlQuery($query, [], '', $this->getHeaderMap('customer2@search.example.com')); } + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testGetCartIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlQuery($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Field "cart" argument "cart_id" of type "String!" is required but not provided. + */ + public function testGetCartIfCartIdIsMissed() + { + $query = <<graphQlQuery($query, [], '', $this->getHeaderMap()); + } + /** * @magentoApiDataFixture Magento/Customer/_files/customer.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testGetNonExistentCart() @@ -113,7 +145,7 @@ public function testGetNonExistentCart() * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Current user does not have an active cart. */ public function testGetInactiveCart() @@ -145,7 +177,7 @@ public function testGetCartWithNotDefaultStore() * @magentoApiDataFixture Magento/Checkout/_files/active_quote.php * @magentoApiDataFixture Magento/Store/_files/second_store.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Wrong store code specified for cart */ public function testGetCartWithWrongStore() @@ -162,7 +194,7 @@ public function testGetCartWithWrongStore() /** * @magentoApiDataFixture Magento/Checkout/_files/active_quote_customer_not_default_store.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Requested store is not found */ public function testGetCartWithNotExistingStore() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/PlaceOrderTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/PlaceOrderTest.php index 47d0d661fb33c..591bac1c35ba6 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/PlaceOrderTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/PlaceOrderTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Customer; +use Exception; use Magento\Framework\Registry; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTokenServiceInterface; @@ -83,6 +84,39 @@ public function testPlaceOrder() self::assertEquals($reservedOrderId, $response['placeOrder']['order']['order_id']); } + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testPlaceOrderIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testPlaceOrderIfCartIdIsMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + /** * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/RemoveCouponFromCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/RemoveCouponFromCartTest.php index ce1c85417b165..f906b33fe19d1 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/RemoveCouponFromCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/RemoveCouponFromCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Customer; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTokenServiceInterface; use Magento\TestFramework\Helper\Bootstrap; @@ -58,7 +59,43 @@ public function testRemoveCouponFromCart() /** * @magentoApiDataFixture Magento/Customer/_files/customer.php - * @expectedException \Exception + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testRemoveCouponFromCartIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testRemoveCouponFromCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query, [], '', $this->getHeaderMap()); + } + + /** + * @magentoApiDataFixture Magento/Customer/_files/customer.php + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testRemoveCouponFromNonExistentCart() @@ -72,7 +109,7 @@ public function testRemoveCouponFromNonExistentCart() /** * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Cart does not contain products */ public function testRemoveCouponFromEmptyCart() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddSimpleProductToCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddSimpleProductToCartTest.php index 9a943cf4b204e..4deed99243f9d 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddSimpleProductToCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddSimpleProductToCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Guest; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\TestCase\GraphQlAbstract; @@ -48,10 +49,112 @@ public function testAddSimpleProductToCart() self::assertEquals($sku, $response['addSimpleProductsToCart']['cart']['items'][0]['product']['sku']); } + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddSimpleProductToCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddSimpleProductToCartIfCartIdIsEmpty() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddSimpleProductToCartIfCartItemsAreMissed() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddSimpleProductToCartIfCartItemsAreEmpty() + { + $query = <<graphQlMutation($query); + } + /** * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testAddProductToNonExistentCart() @@ -67,7 +170,7 @@ public function testAddProductToNonExistentCart() /** * @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a product with SKU "simple_product" */ public function testNonExistentProductToCart() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddVirtualProductToCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddVirtualProductToCartTest.php index cadbec857c2d6..131ff0c480d64 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddVirtualProductToCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/AddVirtualProductToCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Guest; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\TestCase\GraphQlAbstract; @@ -48,10 +49,112 @@ public function testAddVirtualProductToCart() self::assertEquals($sku, $response['addVirtualProductsToCart']['cart']['items'][0]['product']['sku']); } + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddVirtualProductToCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testAddVirtualProductToCartIfCartIdIsEmpty() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddVirtualProductToCartIfCartItemsAreMissed() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_items" is missing + */ + public function testAddVirtualProductToCartIfCartItemsAreEmpty() + { + $query = <<graphQlMutation($query); + } + /** * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/virtual_product.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testAddVirtualToNonExistentCart() @@ -67,7 +170,7 @@ public function testAddVirtualToNonExistentCart() /** * @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Could not find a product with SKU "virtual_product" */ public function testNonExistentProductToCart() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetCartTest.php index b35d689af7d20..d39f1b42459c7 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Guest; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\TestCase\GraphQlAbstract; @@ -71,7 +72,36 @@ public function testGetCustomerCart() } /** - * @expectedException \Exception + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testGetCartIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlQuery($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Field "cart" argument "cart_id" of type "String!" is required but not provided. + */ + public function testGetCartIfCartIdIsMissed() + { + $query = <<graphQlQuery($query); + } + + /** + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testGetNonExistentCart() @@ -86,7 +116,7 @@ public function testGetNonExistentCart() * @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Current user does not have an active cart. */ public function testGetInactiveCart() @@ -116,7 +146,7 @@ public function testGetCartWithNotDefaultStore() * @magentoApiDataFixture Magento/Checkout/_files/active_quote.php * @magentoApiDataFixture Magento/Store/_files/second_store.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Wrong store code specified for cart */ public function testGetCartWithWrongStore() @@ -132,7 +162,7 @@ public function testGetCartWithWrongStore() * @magentoApiDataFixture Magento/Customer/_files/customer.php * @magentoApiDataFixture Magento/Checkout/_files/active_quote_guest_not_default_store.php * - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Requested store is not found */ public function testGetCartWithNotExistingStore() diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/PlaceOrderTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/PlaceOrderTest.php index 30ad69eada29d..828bddcadebcb 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/PlaceOrderTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/PlaceOrderTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Guest; +use Exception; use Magento\Framework\Registry; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Sales\Api\OrderRepositoryInterface; @@ -76,6 +77,37 @@ public function testPlaceOrder() self::assertEquals($reservedOrderId, $response['placeOrder']['order']['order_id']); } + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testPlaceOrderIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testPlaceOrderIfCartIdIsMissed() + { + $query = <<graphQlMutation($query); + } + /** * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/simple_product.php * @magentoApiDataFixture Magento/GraphQl/Quote/_files/enable_offline_shipping_methods.php diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/RemoveCouponFromCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/RemoveCouponFromCartTest.php index 5adb6ce65db6f..57a13e2f1bc03 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/RemoveCouponFromCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/RemoveCouponFromCartTest.php @@ -7,6 +7,7 @@ namespace Magento\GraphQl\Quote\Guest; +use Exception; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\TestFramework\Helper\Bootstrap; use Magento\TestFramework\TestCase\GraphQlAbstract; @@ -49,7 +50,41 @@ public function testRemoveCouponFromCart() } /** - * @expectedException \Exception + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testRemoveCouponFromCartIfCartIdIsEmpty() + { + $maskedQuoteId = ''; + $query = $this->getQuery($maskedQuoteId); + + $this->graphQlMutation($query); + } + + /** + * @expectedException Exception + * @expectedExceptionMessage Required parameter "cart_id" is missing + */ + public function testRemoveCouponFromCartIfCartIdIsMissed() + { + $query = <<graphQlMutation($query); + } + + /** + * @expectedException Exception * @expectedExceptionMessage Could not find a cart with ID "non_existent_masked_id" */ public function testRemoveCouponFromNonExistentCart() @@ -62,7 +97,7 @@ public function testRemoveCouponFromNonExistentCart() /** * @magentoApiDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php - * @expectedException \Exception + * @expectedException Exception * @expectedExceptionMessage Cart does not contain products */ public function testRemoveCouponFromEmptyCart()