Skip to content

Commit

Permalink
Merge branch 'MAGETWO-34804' of github.corp.ebay.com:magento-south/ma…
Browse files Browse the repository at this point in the history
…gento2ce into MAGETWO-34804
  • Loading branch information
slavvka committed May 15, 2015
2 parents 2d52233 + 7783cd2 commit 7f96122
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ protected function getFirstFixtureAddressData()
'default_shipping' => true,
'customer_id' => '1',
'region' => ['region' => 'Alabama', 'region_id' => 1, 'region_code' => 'AL'],
'region_id' => 1,
];
}

Expand All @@ -295,6 +296,7 @@ protected function getSecondFixtureAddressData()
'default_shipping' => false,
'customer_id' => '1',
'region' => ['region' => 'Alabama', 'region_id' => 1, 'region_code' => 'AL'],
'region_id' => 1,
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ protected function getFirstFixtureAddressData()
'default_shipping' => true,
'customer_id' => '1',
'region' => ['region' => 'Alabama', 'region_id' => 1, 'region_code' => 'AL'],
'region_id' => 1,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ protected function getFirstFixtureAddressData()
'default_shipping' => true,
'customer_id' => '1',
'region' => ['region' => 'Alabama', 'region_id' => 1, 'region_code' => 'AL'],
'region_id' => 1,
];
}

Expand All @@ -164,6 +165,7 @@ protected function getSecondFixtureAddressData()
'default_shipping' => false,
'customer_id' => '1',
'region' => ['region' => 'Alabama', 'region_id' => 1, 'region_code' => 'AL'],
'region_id' => 1,
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testSaveAddresses()
$this->assertEquals('flatrate', $response['shipping_methods'][0]['method_code']);

$this->assertArrayHasKey('payment_methods', $response);
$this->assertCount(1, $response['payment_methods']);
$this->assertCount(2, $response['payment_methods']);
$this->assertEquals('checkmo', $response['payment_methods'][0]['code']);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ protected function getQuoteItemTotalsData(\Magento\Quote\Model\Quote $quote)
$items = $quote->getAllItems();
$item = array_shift($items);
return [
ItemTotals::KEY_ITEM_ID => intval($item->getItemId()),
ItemTotals::KEY_PRICE => intval($item->getPrice()),
ItemTotals::KEY_BASE_PRICE => intval($item->getBasePrice()),
ItemTotals::KEY_QTY => $item->getQty(),
Expand Down

0 comments on commit 7f96122

Please sign in to comment.