Skip to content

Commit ac52fe3

Browse files
author
Melnikov, Igor(imelnikov)
committed
Merge pull request #448 from magento-ogre/PR_Branch
[Ogre's] Public PRs and Bugs
2 parents aad945c + 4ea0299 commit ac52fe3

File tree

820 files changed

+3174
-1020
lines changed

Some content is hidden

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

820 files changed

+3174
-1020
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/Model/Auth/Session.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,16 @@ public function isLoggedIn()
177177
*/
178178
public function prolong()
179179
{
180-
$this->setUpdatedAt(time());
180+
$cookieValue = $this->cookieManager->getCookie($this->getName());
181+
if ($cookieValue) {
182+
$this->setUpdatedAt(time());
183+
$cookieMetadata = $this->cookieMetadataFactory->createPublicCookieMetadata()
184+
->setPath($this->sessionConfig->getCookiePath())
185+
->setDomain($this->sessionConfig->getCookieDomain())
186+
->setSecure($this->sessionConfig->getCookieSecure())
187+
->setHttpOnly($this->sessionConfig->getCookieHttpOnly());
188+
$this->cookieManager->setPublicCookie($this->getName(), $cookieValue, $cookieMetadata);
189+
}
181190
}
182191

183192
/**

0 commit comments

Comments
 (0)