Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kerin committed Oct 17, 2013
1 parent 11592ea commit aa55208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Kohana/Jam/Behavior/Shippable/Store/Purchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function update_shipping_items(Model_Store_Purchase $store_purchase)

if ($store_purchase->shipping_address()->changed('country'))
{
$store_purchase->shipping->update_location($store_purchase->purchase->shipping_address()->country);
$store_purchase->shipping->update_items_location($store_purchase->shipping_address()->country);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/Jam/Behavior/Shippable/Store/PurchaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public function test_update_shipping_items()

$this->assertEquals(0, $store_purchase->items_count('shipping'));

$store_purchase_shipping = $this->getMock('Model_Store_Purchase_Shipping', array('update_location'), array('store_purchase_shipping'));
$store_purchase_shipping = $this->getMock('Model_Store_Purchase_Shipping', array('update_items_location'), array('store_purchase_shipping'));

$store_purchase_shipping
->expects($this->once())
->method('update_location')
->method('update_items_location')
->with($this->identicalTo($france));

$store_purchase_shipping->items = array(
Expand Down

0 comments on commit aa55208

Please sign in to comment.