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 c9d23a4 commit 893aae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/test-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testReceiptPage()

$this->instance->shouldReceive('autoEnableWebhook');
echo 'orderId in testReceiptPage: '.$orderId;
$razorpayOrderId=$this->instance->shouldReceive('generate_razorpay_form->getRazorpayPaymentParams->createOrGetRazorpayOrderId')->andReturn('order_test');
$razorpayOrderId=$this->instance->shouldReceive('createOrGetRazorpayOrderId')->andReturn('order_test');

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

0 comments on commit 893aae9

Please sign in to comment.