Skip to content

Commit 058e5e5

Browse files
Merge forwardport of #12227 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12227.patch (created by @andrew-garside-temando) based on commit(s): 1. 149268c
2 parents b48ec86 + e84cb3e commit 058e5e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderCreateTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function prepareOrder()
140140
[
141141
'shipping' => [
142142
'address' => $address,
143-
'method' => 'Flat Rate - Fixed'
143+
'method' => 'flatrate_flatrate'
144144
],
145145
'items' => [$orderItem->getData()],
146146
'stock_id' => null,
@@ -232,6 +232,9 @@ public function testOrderCreate()
232232
$this->assertEquals($order['grand_total'], $model->getGrandTotal());
233233
$this->assertNotNull($model->getShippingAddress());
234234
$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']);
236239
}
237240
}

0 commit comments

Comments
 (0)