File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
app/code/Magento/Shipping
Test/Unit/Model/Config/Source Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Shipping \Model \Config \Source ;
7
7
8
+ /**
9
+ * @inheritdoc
10
+ */
8
11
class Allmethods implements \Magento \Framework \Option \ArrayInterface
9
12
{
10
13
/**
@@ -33,6 +36,7 @@ public function __construct(
33
36
34
37
/**
35
38
* Return array of carriers.
39
+ *
36
40
* If $isActiveOnlyFlag is set to true, will return only active carriers
37
41
*
38
42
* @param bool $isActiveOnlyFlag
@@ -59,7 +63,7 @@ public function toOptionArray($isActiveOnlyFlag = false)
59
63
60
64
/** Check it $carrierMethods array was well formed */
61
65
if (!$ methodCode ) {
62
- continue ;
66
+ continue ;
63
67
}
64
68
$ methods [$ carrierCode ]['value ' ][] = [
65
69
'value ' => $ carrierCode . '_ ' . $ methodCode ,
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
- namespace Magento \Shipping \Test \Unit \Model ;
6
+ namespace Magento \Shipping \Test \Unit \Model \ Config \ Source ;
7
7
8
8
use Magento \Framework \App \Config \ScopeConfigInterface ;
9
9
use Magento \Shipping \Model \Carrier \AbstractCarrierInterface ;
14
14
/**
15
15
* Tests for Allmethods Class
16
16
*/
17
- class InfoTest extends \PHPUnit \Framework \TestCase
17
+ class AllmethodsTest extends \PHPUnit \Framework \TestCase
18
18
{
19
19
/**
20
20
* @var ScopeConfigInterface|MockObject $scopeConfig
You can’t perform that action at this time.
0 commit comments