Skip to content

Commit 2ad85e8

Browse files
author
Oleksii Korshenko
committed
MAGETWO-62202: Prepare code base for 2.0.12
- merged 2.0.11 into 2.0.12 branch
2 parents 3d7e5bc + 9fc676d commit 2ad85e8

File tree

92 files changed

+1937
-446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1937
-446
lines changed

app/code/Magento/Authorizenet/Controller/Directpost/Payment/Place.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function placeCheckoutOrder()
127127
);
128128
} catch (\Exception $exception) {
129129
$result->setData('error', true);
130-
$result->setData('error_messages', __('Cannot place order.'));
130+
$result->setData('error_messages', __('Unable to place order. Please try again later.'));
131131
}
132132
if ($response instanceof Http) {
133133
$response->representJson($this->jsonHelper->jsonEncode($result));

app/code/Magento/Authorizenet/Test/Unit/Controller/Directpost/Payment/PlaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function textExecuteFailedPlaceOrderDataProvider()
279279
{
280280
$objectFailed = new \Magento\Framework\DataObject();
281281
$objectFailed->setData('error', true);
282-
$objectFailed->setData('error_messages', __('Cannot place order.'));
282+
$objectFailed->setData('error_messages', __('Unable to place order. Please try again later.'));
283283

284284
return [
285285
[

app/code/Magento/Authorizenet/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "100.0.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.0.6",
16+
"version": "100.0.7",
1717
"license": [
1818
"proprietary"
1919
],

app/code/Magento/Authorizenet/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Cancel,Cancel
1313
"Something went wrong canceling the transactions.","Something went wrong canceling the transactions."
1414
"There was an error canceling transactions. Please contact us or try again later.","There was an error canceling transactions. Please contact us or try again later."
1515
"We couldn't process your order right now. Please try again later.","We couldn't process your order right now. Please try again later."
16+
"Unable to place order. Please try again later.","Unable to place order. Please try again later."
1617
"amount %1","amount %1"
1718
failed,failed
1819
successful,successful

app/code/Magento/Backend/Block/System/Store/Edit/Form/Website.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
108108
);
109109
}
110110

111-
if (!$websiteModel->getIsDefault() && $websiteModel->getStoresCount()) {
111+
if ($this->checkIsSingleAndIsDefaultStore($websiteModel)) {
112112
$fieldset->addField(
113113
'is_default',
114114
'checkbox',
@@ -133,4 +133,12 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
133133
['name' => 'website[website_id]', 'value' => $websiteModel->getId()]
134134
);
135135
}
136+
137+
private function checkIsSingleAndIsDefaultStore($websiteModel)
138+
{
139+
$hasOnlyDefaultStore = $websiteModel->getStoresCount() == 1 &&
140+
isset($websiteModel->getStoreIds()[\Magento\Store\Model\Store::DEFAULT_STORE_ID]);
141+
142+
return !$websiteModel->getIsDefault() && $websiteModel->getStoresCount() && !$hasOnlyDefaultStore;
143+
}
136144
}

app/code/Magento/Braintree/Model/PaymentMethod.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public function assignData(\Magento\Framework\DataObject $data)
269269

270270
$infoInstance->setAdditionalInformation('cc_last4', $additionalData->getData('cc_last4'));
271271
$infoInstance->setAdditionalInformation('cc_token', $additionalData->getData('cc_token'));
272+
$infoInstance->setAdditionalInformation('store_in_vault', $additionalData->getData('store_in_vault'));
272273
$infoInstance->setAdditionalInformation(
273274
'payment_method_nonce',
274275
$additionalData->getData('payment_method_nonce')

app/code/Magento/Braintree/Test/Unit/Model/PaymentMethodTest.php

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,25 @@ public function testAssignData()
276276
->with($ccExpYear)
277277
->willReturnSelf();
278278

279-
$this->infoInstanceMock->expects($this->atLeastOnce())
279+
$this->infoInstanceMock->expects($this->at(0))
280280
->method('setAdditionalInformation')
281-
->willReturnMap(
282-
[
283-
['device_data', $deviceData],
284-
['cc_last4', $ccLast4],
285-
['cc_token', $ccToken],
286-
['payment_method_nonce', $paymentMethodNonce],
287-
['store_in_vault', $storeInVault]
288-
]
289-
);
281+
->with('device_data', $deviceData);
282+
283+
$this->infoInstanceMock->expects($this->at(1))
284+
->method('setAdditionalInformation')
285+
->with('cc_last4', $ccLast4);
286+
287+
$this->infoInstanceMock->expects($this->at(2))
288+
->method('setAdditionalInformation')
289+
->with('cc_token', $ccToken);
290+
291+
$this->infoInstanceMock->expects($this->at(3))
292+
->method('setAdditionalInformation')
293+
->with('store_in_vault', $storeInVault);
294+
295+
$this->infoInstanceMock->expects($this->at(4))
296+
->method('setAdditionalInformation')
297+
->with('payment_method_nonce', $paymentMethodNonce);
290298

291299
$this->model->assignData($data);
292300
}

app/code/Magento/Braintree/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"magento/module-checkout-agreements": "100.0.*"
2323
},
2424
"type": "magento2-module",
25-
"version": "100.0.7",
25+
"version": "100.0.8",
2626
"license": [
2727
"proprietary"
2828
],

app/code/Magento/BundleImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"magento/framework": "100.0.*"
1212
},
1313
"type": "magento2-module",
14-
"version": "100.0.5",
14+
"version": "100.0.6",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

app/code/Magento/CacheInvalidate/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"magento/framework": "100.0.*"
88
},
99
"type": "magento2-module",
10-
"version": "100.0.5",
10+
"version": "100.0.6",
1111
"license": [
1212
"OSL-3.0",
1313
"AFL-3.0"

0 commit comments

Comments
 (0)