File tree 1 file changed +5
-2
lines changed
dev/tests/api-functional/testsuite/Magento/Sales/Service/V1
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ protected function prepareOrder()
140
140
[
141
141
'shipping ' => [
142
142
'address ' => $ address ,
143
- 'method ' => 'Flat Rate - Fixed '
143
+ 'method ' => 'flatrate_flatrate '
144
144
],
145
145
'items ' => [$ orderItem ->getData ()],
146
146
'stock_id ' => null ,
@@ -232,6 +232,9 @@ public function testOrderCreate()
232
232
$ this ->assertEquals ($ order ['grand_total ' ], $ model ->getGrandTotal ());
233
233
$ this ->assertNotNull ($ model ->getShippingAddress ());
234
234
$ this ->assertTrue ((bool )$ model ->getShippingAddress ()->getId ());
235
- $ this ->assertEquals ('Flat Rate - Fixed ' , $ model ->getShippingMethod ());
235
+ $ this ->assertEquals ('Flat Rate - Fixed ' , $ model ->getShippingDescription ());
236
+ $ shippingMethod = $ model ->getShippingMethod (true );
237
+ $ this ->assertEquals ('flatrate ' , $ shippingMethod ['carrier_code ' ]);
238
+ $ this ->assertEquals ('flatrate ' , $ shippingMethod ['method ' ]);
236
239
}
237
240
}
You can’t perform that action at this time.
0 commit comments