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 18
18
use Magento \Store \Model \Store ;
19
19
use PHPUnit_Framework_MockObject_MockObject as MockObject ;
20
20
21
+ /**
22
+ * @see Shipping
23
+ */
21
24
class ShippingTest extends \PHPUnit \Framework \TestCase
22
25
{
23
26
/**
@@ -108,12 +111,14 @@ public function testComposePackages()
108
111
$ this ->stockItemData ->expects ($ this ->atLeastOnce ())->method ('getQtyIncrements ' )
109
112
->will ($ this ->returnValue (0.5 ));
110
113
$ 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
+ );
117
122
118
123
$ this ->shipping ->composePackagesForCarrier ($ this ->carrier , $ request );
119
124
}
You can’t perform that action at this time.
0 commit comments