File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
app/code/Magento/Shipping/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1818use Magento \Store \Model \Store ;
1919use PHPUnit_Framework_MockObject_MockObject as MockObject ;
2020
21+ /**
22+ * @see Shipping
23+ */
2124class 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 }
You can’t perform that action at this time.
0 commit comments