Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
[BUGFIX] Fixed broken test.
Browse files Browse the repository at this point in the history
Test was not running in EE 1.13
  • Loading branch information
cmuench committed May 3, 2013
1 parent 22a7081 commit 045efc1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class N98_LayoutHelper_Test_Block_Sales_Order_Info extends EcomDev_PHPUnit_Test_
public function setUp()
{
parent::setUp();

$infoBlock = $this->getBlockMock('payment/info');
$paymentHelperMock = $this->getHelperMock('payment/data', array('getInfoBlock'));

Expand All @@ -55,7 +56,10 @@ public function setUp()

$this->replaceByMock('helper', 'payment', $paymentHelperMock);

$orderMock = $this->getModelMock('sales/order', array('hasShipments', 'hasCreditmemos'));
$payment = $this->getModelMock('sales/order_payment');

$orderMock = $this->getModelMock('sales/order', array('hasShipments', 'hasCreditmemos', 'getPayment'));
$orderMock->expects($this->any())->method('getPayment')->will($this->returnValue($payment));

Mage::register('current_order', $orderMock);
}
Expand Down

0 comments on commit 045efc1

Please sign in to comment.