Skip to content

Commit 9e4cac8

Browse files
update test unit fix
1 parent fa3093e commit 9e4cac8

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

app/code/Magento/Usps/Model/Carrier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ public function getCode($type, $code = '')
827827
'4' => 'Retail Ground',
828828
'6' => 'Ground Advantage',
829829
'7' => 'Library',
830+
'9' => 'Ground Advantage',
830831
'13' => 'Priority Express',
831832
'15' => 'First Class',
832833
'16' => 'Priority',

app/code/Magento/Usps/Setup/Patch/Data/UpdateAllowedMethods.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use Magento\Framework\Setup\Patch\PatchVersionInterface;
1212

1313
/**
14-
* Class UpdateAllowedMethods
15-
* @package Magento\Usps\Setup\Patch
14+
* Patch for updating allowed shipping methods for USPS carrier.
1615
*/
1716
class UpdateAllowedMethods implements DataPatchInterface, PatchVersionInterface
1817
{
@@ -23,6 +22,7 @@ class UpdateAllowedMethods implements DataPatchInterface, PatchVersionInterface
2322

2423
/**
2524
* UpdateAllowedMethods constructor.
25+
*
2626
* @param \Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup
2727
*/
2828
public function __construct(
@@ -32,7 +32,9 @@ public function __construct(
3232
}
3333

3434
/**
35-
* {@inheritdoc}
35+
* Apply the patch.
36+
*
37+
* @return void
3638
*/
3739
public function apply()
3840
{
@@ -116,23 +118,29 @@ public function apply()
116118
}
117119

118120
/**
119-
* {@inheritdoc}
121+
* Get dependencies for the patch (none in this case).
122+
*
123+
* @return array
120124
*/
121125
public static function getDependencies()
122126
{
123127
return [];
124128
}
125129

126130
/**
127-
* {@inheritdoc}
131+
* Get the version of the patch.
132+
*
133+
* @return string
128134
*/
129135
public static function getVersion()
130136
{
131-
return '2.0.1';
137+
return '2.1.1';
132138
}
133139

134140
/**
135-
* {@inheritdoc}
141+
* Get aliases for the patch (none in this case).
142+
*
143+
* @return array
136144
*/
137145
public function getAliases()
138146
{

0 commit comments

Comments
 (0)