File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
app/code/Magento/Braintree/view/frontend
dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogInventory Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 66var config = {
77 map : {
88 '*' : {
9- braintreeClient : 'https://js.braintreegateway.com/web/3.46.0-beta-3ds.8 /js/client.min.js' ,
10- braintreeHostedFields : 'https://js.braintreegateway.com/web/3.46.0-beta-3ds.8 /js/hosted-fields.min.js' ,
11- braintreePayPal : 'https://js.braintreegateway.com/web/3.46.0-beta-3ds.8 /js/paypal-checkout.min.js' ,
12- braintree3DSecure : 'https://js.braintreegateway.com/web/3.46.0-beta-3ds.8 /js/three-d-secure.min.js' ,
13- braintreeDataCollector : 'https://js.braintreegateway.com/web/3.46.0-beta-3ds.8 /js/data-collector.min.js'
9+ braintreeClient : 'https://js.braintreegateway.com/web/3.48.0 /js/client.min.js' ,
10+ braintreeHostedFields : 'https://js.braintreegateway.com/web/3.48.0 /js/hosted-fields.min.js' ,
11+ braintreePayPal : 'https://js.braintreegateway.com/web/3.48.0 /js/paypal-checkout.min.js' ,
12+ braintree3DSecure : 'https://js.braintreegateway.com/web/3.48.0 /js/three-d-secure.min.js' ,
13+ braintreeDataCollector : 'https://js.braintreegateway.com/web/3.48.0 /js/data-collector.min.js'
1414 }
1515 } ,
1616 paths : {
Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ public function testAddProductIfQuantityIsNotAvailable()
5050 * @magentoApiDataFixture Magento/Catalog/_files/products.php
5151 * @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
5252 * @magentoConfigFixture default_store cataloginventory/item_options/max_sale_qty 5
53- * @expectedException \Exception
54- * @expectedExceptionMessage The most you may purchase is 5.
5553 */
5654 public function testAddMoreProductsThatAllowed ()
5755 {
5856 $ sku = 'custom-design-simple-product ' ;
5957 $ quantity = 7 ;
6058 $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_order_1 ' );
6159
60+ $ this ->expectExceptionMessageRegExp (
61+ '/The most you may purchase is 5|The requested qty exceeds the maximum qty allowed in shopping cart/ '
62+ );
63+
6264 $ query = $ this ->getQuery ($ maskedQuoteId , $ sku , $ quantity );
6365 $ this ->graphQlMutation ($ query );
6466 }
You can’t perform that action at this time.
0 commit comments