Skip to content

Commit

Permalink
Update test-methods.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcbr committed May 27, 2024
1 parent 3f6b84c commit 8361efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/test-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ public function testReceiptPage()
$wcOrderId = $order->get_id();

$this->instance->shouldReceive('autoEnableWebhook');
echo 'orderId in testReceiptPage: '.$orderId;
echo 'orderId in testReceiptPage: '.$wcOrderId;
$razorpayOrderId=$this->instance->shouldReceive('createOrGetRazorpayOrderId')->with($order, $wcOrderId)->andReturn('order_test');

$this->instance->shouldReceive('getRazorpayApiPublicInstance')->andReturnUsing(function () {
return new MockApi('key_id', '');
});

ob_start();
$this->instance->receipt_page($orderId);
$this->instance->receipt_page($wcOrderId);
$result = ob_get_contents();
ob_end_clean();

Expand Down

0 comments on commit 8361efe

Please sign in to comment.