Skip to content

Commit 60cde29

Browse files
committed
MC-18004: Cannot create Shipping Label for RMA: "No authorized items or allowed shipping methods"
- Fixed static tests
1 parent 6c9651f commit 60cde29

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

app/code/Magento/Shipping/Test/Unit/Model/ShippingTest.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Magento\Store\Model\Store;
1919
use PHPUnit_Framework_MockObject_MockObject as MockObject;
2020

21+
/**
22+
* @see Shipping
23+
*/
2124
class ShippingTest extends \PHPUnit\Framework\TestCase
2225
{
2326
/**
@@ -108,12 +111,14 @@ public function testComposePackages()
108111
$this->stockItemData->expects($this->atLeastOnce())->method('getQtyIncrements')
109112
->will($this->returnValue(0.5));
110113
$this->carrier->method('getConfigData')
111-
->willReturnCallback(function ($key) {
112-
$configData = [
113-
'max_package_weight' => 10,
114-
];
115-
return isset($configData[$key]) ? $configData[$key] : 0;
116-
});
114+
->willReturnCallback(
115+
function ($key) {
116+
$configData = [
117+
'max_package_weight' => 10,
118+
];
119+
return isset($configData[$key]) ? $configData[$key] : 0;
120+
}
121+
);
117122

118123
$this->shipping->composePackagesForCarrier($this->carrier, $request);
119124
}

0 commit comments

Comments
 (0)