Skip to content

Commit

Permalink
fix static test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Dec 19, 2019
1 parent c4a3c00 commit fd7633b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/code/Magento/Shipping/Model/Config/Source/Allmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/
namespace Magento\Shipping\Model\Config\Source;

/**
* @inheritdoc
*/
class Allmethods implements \Magento\Framework\Option\ArrayInterface
{
/**
Expand Down Expand Up @@ -33,6 +36,7 @@ public function __construct(

/**
* Return array of carriers.
*
* If $isActiveOnlyFlag is set to true, will return only active carriers
*
* @param bool $isActiveOnlyFlag
Expand All @@ -59,7 +63,7 @@ public function toOptionArray($isActiveOnlyFlag = false)

/** Check it $carrierMethods array was well formed */
if (!$methodCode) {
continue;
continue;
}
$methods[$carrierCode]['value'][] = [
'value' => $carrierCode . '_' . $methodCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Shipping\Test\Unit\Model;
namespace Magento\Shipping\Test\Unit\Model\Config\Source;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Shipping\Model\Carrier\AbstractCarrierInterface;
Expand All @@ -14,7 +14,7 @@
/**
* Tests for Allmethods Class
*/
class InfoTest extends \PHPUnit\Framework\TestCase
class AllmethodsTest extends \PHPUnit\Framework\TestCase
{
/**
* @var ScopeConfigInterface|MockObject $scopeConfig
Expand Down

0 comments on commit fd7633b

Please sign in to comment.