File tree 1 file changed +8
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public function testSetPaymentOnCartWithSimpleProduct()
96
96
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
97
97
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
98
98
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/set_flatrate_shipping_method.php
99
+ * @magentoApiDataFixture Magento/GraphQl/Catalog/_files/set_simple_product_out_of_stock.php
99
100
*
100
101
* @dataProvider dataProviderSetPaymentOnCartWithException
101
102
* @param string $input
@@ -141,6 +142,13 @@ public function dataProviderSetPaymentOnCartWithException(): array
141
142
'cart_id: "cart_id_value" ' ,
142
143
'Required parameter "code" for "payment_method" is missing. ' ,
143
144
],
145
+ 'place_order_with_out_of_stock_products ' => [
146
+ 'cart_id: "cart_id_value"
147
+ payment_method: {
148
+ code: " ' . Checkmo::PAYMENT_METHOD_CHECKMO_CODE . '"
149
+ } ' ,
150
+ 'Unable to place order: Some of the products are out of stock. ' ,
151
+ ],
144
152
];
145
153
}
146
154
You can’t perform that action at this time.
0 commit comments