Skip to content

Commit

Permalink
#19913: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Apr 18, 2019
1 parent 13ca4a2 commit 1cb3488
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Webapi/Controller/PathProcessor.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Webapi\Controller;

use Magento\Framework\App\ObjectManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

use Magento\Store\Model\Store;

/**
* Test for Magento\Webapi\Controller\PathProcessor class.
*/
class PathProcessorTest extends \PHPUnit\Framework\TestCase
{
/** @var \PHPUnit_Framework_MockObject_MockObject | \Magento\Store\Model\StoreManagerInterface */
Expand Down Expand Up @@ -59,7 +62,7 @@ public function testAllStoreCode($storeCodeInPath, $storeCodeSet, $setCurrentSto
$this->storeManagerMock->expects($this->exactly($setCurrentStoreCallCtr))
->method('setCurrentStore')
->with($storeCodeSet);
if($setCurrentStoreCallCtr > 0) {
if ($setCurrentStoreCallCtr > 0) {
$this->localeResolverMock->expects($this->once())
->method('emulate');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

use Magento\Store\Model\Store;

/**
* Test for Magento\Webapi\Controller\PathProcessor class.
*/
class PathProcessorTest extends \PHPUnit\Framework\TestCase
{
/** @var \PHPUnit_Framework_MockObject_MockObject | \Magento\Store\Model\StoreManagerInterface */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

use Magento\Store\Model\Store;

/**
* Test for Magento\Webapi\Controller\PathProcessor class.
*/
class PathProcessorTest extends \PHPUnit\Framework\TestCase
{
/**
Expand Down

0 comments on commit 1cb3488

Please sign in to comment.