Skip to content

Commit

Permalink
Update the fixture and tests to reflect the functionality of getShipp…
Browse files Browse the repository at this point in the history
…ingMethod
  • Loading branch information
andrew-garside-temando committed Nov 12, 2017
1 parent 44d2562 commit 149268c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function prepareOrder()
[
'shipping' => [
'address' => $address,
'method' => 'Flat Rate - Fixed'
'method' => 'flatrate_flatrate'
],
'items' => [$orderItem->getData()],
'stock_id' => null,
Expand Down Expand Up @@ -232,6 +232,9 @@ public function testOrderCreate()
$this->assertEquals($order['grand_total'], $model->getGrandTotal());
$this->assertNotNull($model->getShippingAddress());
$this->assertTrue((bool)$model->getShippingAddress()->getId());
$this->assertEquals('Flat Rate - Fixed', $model->getShippingMethod());
$this->assertEquals('Flat Rate - Fixed', $model->getShippingDescription());
$shippingMethod = $model->getShippingMethod(true);
$this->assertEquals('flatrate', $shippingMethod['carrier_code']);
$this->assertEquals('flatrate', $shippingMethod['method']);
}
}

0 comments on commit 149268c

Please sign in to comment.