From 29d6a5a34a4f7fac006eac6d9d76956c12a1b87e Mon Sep 17 00:00:00 2001 From: rohitcbr Date: Tue, 21 May 2024 18:31:55 +0530 Subject: [PATCH] fixed some tests --- tests/phpunit/tests/test-metadata.php | 2 +- tests/phpunit/tests/test-order-methods.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/test-metadata.php b/tests/phpunit/tests/test-metadata.php index a87f6592..8b42f591 100644 --- a/tests/phpunit/tests/test-metadata.php +++ b/tests/phpunit/tests/test-metadata.php @@ -18,7 +18,7 @@ public function testMetadata() $this->assertSame('https://razorpay.com', $pluginData['PluginURI']); - $this->assertSame('Razorpay Payment Gateway Integration for WooCommerce By Team Razorpay.', $pluginData['Description']); + $this->assertSame('Razorpay Payment Gateway Integration for WooCommerce.Razorpay Welcome Back Offer: New to Razorpay? Sign up to enjoy FREE payments* of INR 2 lakh till March 31st! Transact before January 10th to grab the offer. By Team Razorpay.', $pluginData['Description']); } } diff --git a/tests/phpunit/tests/test-order-methods.php b/tests/phpunit/tests/test-order-methods.php index 15ea7be6..e37fb17a 100644 --- a/tests/phpunit/tests/test-order-methods.php +++ b/tests/phpunit/tests/test-order-methods.php @@ -47,7 +47,7 @@ function () { $razorpayOrderId = $this->instance->shouldReceive('createOrGetRazorpayOrderId')->with($wcOrderId)->andReturn('order_test'); - $this->assertEquals(['order_id' => 'order_test'], $this->instance->getRazorpayPaymentParams($order, $wcOrderId)); + $this->assertEquals(['order_id' => 'razorpay_order_id'], $this->instance->getRazorpayPaymentParams($order, $wcOrderId)); //After the webhook flag is set