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 6
6
var config = {
7
7
map : {
8
8
'*' : {
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'
14
14
}
15
15
} ,
16
16
paths : {
Original file line number Diff line number Diff line change @@ -50,15 +50,17 @@ public function testAddProductIfQuantityIsNotAvailable()
50
50
* @magentoApiDataFixture Magento/Catalog/_files/products.php
51
51
* @magentoApiDataFixture Magento/Checkout/_files/active_quote.php
52
52
* @magentoConfigFixture default_store cataloginventory/item_options/max_sale_qty 5
53
- * @expectedException \Exception
54
- * @expectedExceptionMessage The most you may purchase is 5.
55
53
*/
56
54
public function testAddMoreProductsThatAllowed ()
57
55
{
58
56
$ sku = 'custom-design-simple-product ' ;
59
57
$ quantity = 7 ;
60
58
$ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_order_1 ' );
61
59
60
+ $ this ->expectExceptionMessageRegExp (
61
+ '/The most you may purchase is 5|The requested qty exceeds the maximum qty allowed in shopping cart/ '
62
+ );
63
+
62
64
$ query = $ this ->getQuery ($ maskedQuoteId , $ sku , $ quantity );
63
65
$ this ->graphQlMutation ($ query );
64
66
}
You can’t perform that action at this time.
0 commit comments