Skip to content

Commit fd7633b

Browse files
committed
fix static test
1 parent c4a3c00 commit fd7633b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Shipping/Model/Config/Source/Allmethods.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Shipping\Model\Config\Source;
77

8+
/**
9+
* @inheritdoc
10+
*/
811
class Allmethods implements \Magento\Framework\Option\ArrayInterface
912
{
1013
/**
@@ -33,6 +36,7 @@ public function __construct(
3336

3437
/**
3538
* Return array of carriers.
39+
*
3640
* If $isActiveOnlyFlag is set to true, will return only active carriers
3741
*
3842
* @param bool $isActiveOnlyFlag
@@ -59,7 +63,7 @@ public function toOptionArray($isActiveOnlyFlag = false)
5963

6064
/** Check it $carrierMethods array was well formed */
6165
if (!$methodCode) {
62-
continue;
66+
continue;
6367
}
6468
$methods[$carrierCode]['value'][] = [
6569
'value' => $carrierCode . '_' . $methodCode,

app/code/Magento/Shipping/Test/Unit/Model/Config/Source/AllmethodsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
namespace Magento\Shipping\Test\Unit\Model;
6+
namespace Magento\Shipping\Test\Unit\Model\Config\Source;
77

88
use Magento\Framework\App\Config\ScopeConfigInterface;
99
use Magento\Shipping\Model\Carrier\AbstractCarrierInterface;
@@ -14,7 +14,7 @@
1414
/**
1515
* Tests for Allmethods Class
1616
*/
17-
class InfoTest extends \PHPUnit\Framework\TestCase
17+
class AllmethodsTest extends \PHPUnit\Framework\TestCase
1818
{
1919
/**
2020
* @var ScopeConfigInterface|MockObject $scopeConfig

0 commit comments

Comments
 (0)