Skip to content

Commit 212c983

Browse files
committed
Merge remote-tracking branch 'origin/develop' into MAGETWO-49390-2
2 parents 1230198 + 4b9c132 commit 212c983

File tree

897 files changed

+4191
-1304
lines changed

Some content is hidden

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

897 files changed

+4191
-1304
lines changed

.travis.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ env:
1111
- TEST_SUITE=integration_part_1
1212
- TEST_SUITE=integration_part_2
1313
- TEST_SUITE=integration_integrity
14-
- TEST_SUITE=static_phpcs
15-
- TEST_SUITE=static_annotation
14+
- TEST_SUITE=static
1615
cache:
1716
apt: true
1817
directories:
@@ -21,9 +20,9 @@ cache:
2120
matrix:
2221
exclude:
2322
- php: 5.6
24-
env: TEST_SUITE=static_phpcs
25-
- php: 5.6
26-
env: TEST_SUITE=static_annotation
23+
env: TEST_SUITE=static
24+
- php: 7.0
25+
env: TEST_SUITE=static
2726
before_install:
2827
- sudo apt-get update -qq
2928
- sudo apt-get install -y -qq postfix
@@ -68,6 +67,4 @@ script:
6867
# Integration integrity tests
6968
- sh -c "if [ '$TEST_SUITE' = 'integration_integrity' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist testsuite/Magento/Test/Integrity; fi"
7069
# Static tests [Code Style]
71-
- sh -c "if [ '$TEST_SUITE' = 'static_phpcs' ]; then cd dev/tests/static; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest::testCodeStyle'; fi"
72-
# Static tests [Code Style]
73-
- sh -c "if [ '$TEST_SUITE' = 'static_annotation' ]; then cd dev/tests/static; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest::testAnnotationStandard'; fi"
70+
- sh -c "if [ '$TEST_SUITE' = 'static' ]; then cd dev/tests/static/; php get_github_changes.php --output-file='$TRAVIS_BUILD_DIR/dev/tests/static/testsuite/Magento/Test/_files/changed_files_ce.txt' --base-path='$TRAVIS_BUILD_DIR' --repo='https://github.com/magento/magento2.git' --branch='develop'; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest'; fi"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=master)](https://travis-ci.org/magento/magento2)
1+
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=develop)](https://travis-ci.org/magento/magento2)
22
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
33
<h2>Welcome</h2>
44
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results.

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/Validator/TierPriceTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class TierPriceTest extends \PHPUnit_Framework_TestCase
3333
*/
3434
protected $tierPrice;
3535

36-
37-
public function setUp()
36+
protected function setUp()
3837
{
3938
$this->groupRepository = $this->getMockBuilder('\Magento\Customer\Api\GroupRepositoryInterface')
4039
->disableOriginalConstructor()

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/Validator/WebsiteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class WebsiteTest extends \PHPUnit_Framework_TestCase
2525
*/
2626
protected $website;
2727

28-
public function setUp()
28+
protected function setUp()
2929
{
3030
$this->webSiteModel = $this->getMock(
3131
'\Magento\Store\Model\WebSite',

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Import/AdvancedPricing/ValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ValidatorTest extends \PHPUnit_Framework_TestCase
2525
*/
2626
protected $validatorTest;
2727

28-
public function setUp()
28+
protected function setUp()
2929
{
3030
$this->validatorTest = $this->getMockForAbstractClass(
3131
'Magento\CatalogImportExport\Model\Import\Product\RowValidatorInterface',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class AdvancedPricingTest extends \Magento\ImportExport\Test\Unit\Model\Import\A
123123
*/
124124
protected $errorAggregator;
125125

126-
public function setUp()
126+
protected function setUp()
127127
{
128128
parent::setUp();
129129

app/code/Magento/AdvancedPricingImportExport/Test/Unit/Model/Indexer/Product/Price/Plugin/ImportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ImportTest extends \PHPUnit_Framework_TestCase
2525
*/
2626
protected $advancedPricing;
2727

28-
public function setUp()
28+
protected function setUp()
2929
{
3030
$this->indexer = $this->getMockForAbstractClass('\Magento\Framework\Indexer\IndexerInterface', [], '', false);
3131
$this->import = $this->getMock(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class PlaceTest extends \PHPUnit_Framework_TestCase
3333
* @var ObjectManager
3434
*/
3535
protected $objectManager;
36+
3637
/**
3738
* @var Place
3839
*/
@@ -98,7 +99,7 @@ class PlaceTest extends \PHPUnit_Framework_TestCase
9899
*/
99100
protected $checkoutSessionMock;
100101

101-
public function setUp()
102+
protected function setUp()
102103
{
103104
$this->directpostSessionMock = $this
104105
->getMockBuilder('Magento\Authorizenet\Model\Directpost\Session')

app/code/Magento/Authorizenet/Test/Unit/Model/Directpost/SessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SessionTest extends \PHPUnit_Framework_TestCase
2626
*/
2727
protected $storageMock;
2828

29-
public function setUp()
29+
protected function setUp()
3030
{
3131
$this->storageMock = $this
3232
->getMockBuilder('Magento\Framework\Session\StorageInterface')

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Date.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function __construct(
4747
* Retrieve date format
4848
*
4949
* @return string
50+
* @deprecated
5051
*/
5152
protected function _getFormat()
5253
{
@@ -74,16 +75,18 @@ protected function _getFormat()
7475
*/
7576
public function render(\Magento\Framework\DataObject $row)
7677
{
77-
if ($data = $row->getData($this->getColumn()->getIndex())) {
78-
$timezone = $this->getColumn()->getTimezone() !== false ? $this->_localeDate->getConfigTimezone() : 'UTC';
79-
return $this->dateTimeFormatter->formatObject(
80-
$this->_localeDate->date(
81-
new \DateTime(
82-
$data,
83-
new \DateTimeZone($timezone)
84-
)
85-
),
86-
$this->_getFormat()
78+
$format = $this->getColumn()->getFormat();
79+
$date = $this->_getValue($row);
80+
if ($date) {
81+
if (!($date instanceof \DateTimeInterface)) {
82+
$date = new \DateTime($date);
83+
}
84+
return $this->_localeDate->formatDateTime(
85+
$date,
86+
$format ?: \IntlDateFormatter::MEDIUM,
87+
\IntlDateFormatter::NONE,
88+
null,
89+
$this->getColumn()->getTimezone() === false ? 'UTC' : null
8790
);
8891
}
8992
return $this->getColumn()->getDefault();

0 commit comments

Comments
 (0)