Skip to content

Commit 214d622

Browse files
[Magento Community Engineering] Community Contributions - 2.3-develop
- merged latest code from mainline branch
2 parents 8201061 + cea3e79 commit 214d622

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

app/code/Magento/Braintree/view/frontend/requirejs-config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
var 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: {

app/code/Magento/Store/Model/StoreSwitcher/ManagePrivateContent.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ public function __construct(
3838
}
3939

4040
/**
41+
* Update version of private content on each store switch.
42+
*
4143
* @param StoreInterface $fromStore store where we came from
4244
* @param StoreInterface $targetStore store where to go to
4345
* @param string $redirectUrl original url requested for redirect after switching
46+
*
4447
* @return string redirect url
4548
* @throws CannotSwitchStoreException
4649
*/
@@ -54,7 +57,7 @@ public function switch(StoreInterface $fromStore, StoreInterface $targetStore, s
5457
->setHttpOnly(false);
5558
$this->cookieManager->setPublicCookie(
5659
\Magento\Framework\App\PageCache\Version::COOKIE_NAME,
57-
'should_be_updated',
60+
\uniqid('updated-', true),
5861
$publicCookieMetadata
5962
);
6063
} catch (\Exception $e) {

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogInventory/AddProductToCartTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)