Skip to content

Commit ae50a40

Browse files
committed
Merge branch 'develop' of https://github.corp.magento.com/magento2/magento2ce into MTA-2766
2 parents b5fb6d1 + 44f284d commit ae50a40

File tree

641 files changed

+22369
-9043
lines changed

Some content is hidden

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

641 files changed

+22369
-9043
lines changed

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: php
22
php:
33
- 5.5
44
- 5.6
5+
- 7.0
56
env:
67
- TEST_SUITE=unit
78
- TEST_SUITE=integration_part_1
@@ -37,13 +38,7 @@ before_script:
3738
# Mock mail
3839
- sudo service postfix stop
3940
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
40-
- echo -e '#!/usr/bin/env bash\nexit 0' | sudo tee /usr/sbin/sendmail
41-
- >
42-
echo 'sendmail_path = "/usr/sbin/sendmail -t -i "'
43-
| sudo tee "/home/travis/.phpenv/versions/`php -i
44-
| grep "PHP Version"
45-
| head -n 1
46-
| grep -o -P '\d+\.\d+\.\d+.*'`/etc/conf.d/sendmail.ini"
41+
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
4742
# Disable xDebug
4843
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
4944
# Install MySQL 5.6, create DB for integration tests

app/autoload.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@
1313
*/
1414
define('BP', dirname(__DIR__));
1515

16-
$vendorDir = require BP . '/app/etc/vendor_path.php';
16+
define('VENDOR_PATH', BP . '/app/etc/vendor_path.php');
17+
18+
if (!file_exists(VENDOR_PATH)) {
19+
throw new \Exception(
20+
'We can\'t read some files that are required to run the Magento application. '
21+
. 'This usually means file permissions are set incorrectly.'
22+
);
23+
}
24+
25+
$vendorDir = require VENDOR_PATH;
1726
$vendorAutoload = BP . "/{$vendorDir}/autoload.php";
1827

1928
/* 'composer install' validation */

app/code/Magento/AdvancedPricingImportExport/Model/Export/AdvancedPricing.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ class AdvancedPricing extends \Magento\CatalogImportExport\Model\Export\Product
9595
* @param \Magento\CatalogImportExport\Model\Export\Product\Type\Factory $_typeFactory
9696
* @param \Magento\Catalog\Model\Product\LinkTypeProvider $linkTypeProvider
9797
* @param \Magento\CatalogImportExport\Model\Export\RowCustomizerInterface $rowCustomizer
98+
* @param \Magento\Framework\Model\Entity\MetadataPool $metadataPool
9899
* @param ImportProduct\StoreResolver $storeResolver
99100
* @param \Magento\Customer\Api\GroupRepositoryInterface $groupRepository
101+
* @param \Magento\Framework\Model\Entity\MetadataPool $metadataPool
100102
* @throws \Magento\Framework\Exception\LocalizedException
101103
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
102104
*/
@@ -117,6 +119,7 @@ public function __construct(
117119
\Magento\CatalogImportExport\Model\Export\Product\Type\Factory $_typeFactory,
118120
\Magento\Catalog\Model\Product\LinkTypeProvider $linkTypeProvider,
119121
\Magento\CatalogImportExport\Model\Export\RowCustomizerInterface $rowCustomizer,
122+
\Magento\Framework\Model\Entity\MetadataPool $metadataPool,
120123
\Magento\CatalogImportExport\Model\Import\Product\StoreResolver $storeResolver,
121124
\Magento\Customer\Api\GroupRepositoryInterface $groupRepository
122125
) {
@@ -139,7 +142,8 @@ public function __construct(
139142
$attributeColFactory,
140143
$_typeFactory,
141144
$linkTypeProvider,
142-
$rowCustomizer
145+
$rowCustomizer,
146+
$metadataPool
143147
);
144148
}
145149

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Export/AdvancedPricingTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ class AdvancedPricingTest extends \PHPUnit_Framework_TestCase
107107
*/
108108
protected $groupRepository;
109109

110+
/**
111+
* @var \Magento\Framework\Model\Entity\MetadataPool|\PHPUnit_Framework_MockObject_MockObject
112+
*/
113+
protected $metadataPool;
114+
110115
/**
111116
* @var \Magento\ImportExport\Model\Export\Adapter\AbstractAdapter| \PHPUnit_Framework_MockObject_MockObject
112117
*/
@@ -285,6 +290,13 @@ protected function setUp()
285290
'',
286291
false
287292
);
293+
$this->metadataPool = $this->getMock(
294+
'\Magento\Framework\Model\Entity\MetadataPool',
295+
[],
296+
[],
297+
'',
298+
false
299+
);
288300
$this->writer = $this->getMock(
289301
'Magento\ImportExport\Model\Export\Adapter\AbstractAdapter',
290302
[
@@ -343,6 +355,7 @@ protected function setUp()
343355
$this->typeFactory,
344356
$this->linkTypeProvider,
345357
$this->rowCustomizer,
358+
$this->metadataPool,
346359
$this->storeResolver,
347360
$this->groupRepository
348361
);

app/code/Magento/Backend/Block/Store/Switcher.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Store switcher block
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
11-
*/
127
namespace Magento\Backend\Block\Store;
138

149
/**
10+
* Store switcher block
11+
*
1512
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1613
*/
1714
class Switcher extends \Magento\Backend\Block\Template
1815
{
1916
/**
2017
* URL for store switcher hint
2118
*/
22-
const HINT_URL = 'http://www.magentocommerce.com/knowledge-base/entry/understanding-store-scopes';
19+
const HINT_URL = 'http://docs.magento.com/m2/ce/user_guide/stores/configuration.html';
2320

2421
/**
2522
* Name of website variable

app/code/Magento/Backend/view/adminhtml/templates/page/js/calendar.phtml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ require([
5050
showTime: false,
5151
showHour: false,
5252
showMinute: false,
53-
localTimezone: <?php /* @escapeNotVerified */ echo $block->getTimezoneOffsetSeconds() ?>,
54-
serverTimezoneSeconds:<?php /* @escapeNotVerified */ echo $block->getStoreTimestamp() ?>,
5553
yearRange: '<?php /* @escapeNotVerified */ echo $block->getYearRange() ?>'
5654
}
5755
});

app/code/Magento/Braintree/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"magento/module-directory": "100.0.*",
1717
"magento/module-theme": "100.0.*",
1818
"magento/framework": "100.0.*",
19-
"braintree/braintree_php": "2.39.0"
19+
"braintree/braintree_php": "3.7.0"
2020
},
2121
"suggest": {
2222
"magento/module-checkout-agreements": "100.0.*"

app/code/Magento/BraintreeTwo/view/adminhtml/layout/sales_order_create_index.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
*/
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9-
<head>
10-
<css src="Magento_BraintreeTwo::css/styles.css"/>
11-
</head>
129
<body>
1310
<referenceBlock name="order_create_billing_form">
1411
<action method="setMethodFormTemplate">

app/code/Magento/BraintreeTwo/view/adminhtml/templates/form/cc.phtml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ $ccType = $block->getInfoData('cc_type');
3636
<span><?php echo $block->escapeHtml(__('Credit Card Number')); ?></span>
3737
</label>
3838
<div class="admin__field-control control">
39-
<div id="<?php /* @noEscape */ echo $code; ?>_cc_number" class="control-container">
39+
<div id="<?php /* @noEscape */ echo $code; ?>_cc_number" class="admin__control-text hosted-control">
4040
<span class="icon-type"></span>
4141
</div>
42+
<div class="hosted-error admin__field-error">
43+
<?php echo $block->escapeHtml(__('Please enter valid Credit Card Number')); ?>
44+
</div>
4245
</div>
4346
</div>
4447

@@ -47,9 +50,15 @@ $ccType = $block->getInfoData('cc_type');
4750
<span><?php echo $block->escapeHtml(__('Expiration Date')); ?></span>
4851
</label>
4952
<div class="admin__field-control control">
50-
<div id="<?php /* @noEscape */ echo $code; ?>_cc_exp_month" class="control-container select-date"></div>
51-
<span class="inline-separator">/</span>
52-
<div id="<?php /* @noEscape */ echo $code; ?>_cc_exp_year" class="control-container select-date"></div>
53+
<div class="hosted-date-wrap">
54+
<div id="<?php /* @noEscape */ echo $code; ?>_cc_exp_month"
55+
class="admin__control-text hosted-control hosted-date"></div>
56+
57+
<div id="<?php /* @noEscape */ echo $code; ?>_cc_exp_year"
58+
class="admin__control-text hosted-control hosted-date"></div>
59+
60+
<div class="hosted-error admin__field-error"><?php echo $block->escapeHtml(__('Please enter valid Expiration Date')); ?></div>
61+
</div>
5362
</div>
5463
</div>
5564
<?php if($block->hasVerification()): ?>
@@ -58,7 +67,12 @@ $ccType = $block->getInfoData('cc_type');
5867
<span><?php echo $block->escapeHtml(__('Card Verification Number')); ?></span>
5968
</label>
6069
<div class="admin__field-control control">
61-
<div id="<?php /* @noEscape */ echo $code; ?>_cc_cid" class="control-container"></div>
70+
<div id="<?php /* @noEscape */ echo $code; ?>_cc_cid"
71+
class="admin__control-text hosted-control hosted-cid"></div>
72+
73+
<div class="hosted-error admin__field-error">
74+
<?php echo $block->escapeHtml(__('Please enter valid Card Verification Number')); ?>
75+
</div>
6276
</div>
6377
</div>
6478
<?php endif; ?>

app/code/Magento/BraintreeTwo/view/adminhtml/web/css/styles.css

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)