diff --git a/tests/phpunit/tests/test-methods.php b/tests/phpunit/tests/test-methods.php index 6be4088e..c7d1548c 100755 --- a/tests/phpunit/tests/test-methods.php +++ b/tests/phpunit/tests/test-methods.php @@ -102,7 +102,7 @@ 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 () { @@ -110,7 +110,7 @@ public function testReceiptPage() }); ob_start(); - $this->instance->receipt_page($orderId); + $this->instance->receipt_page($wcOrderId); $result = ob_get_contents(); ob_end_clean();