Skip to content

Commit

Permalink
fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcbr committed May 21, 2024
1 parent 9a32a61 commit 29d6a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/test-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testMetadata()

$this->assertSame('https://razorpay.com', $pluginData['PluginURI']);

$this->assertSame('Razorpay Payment Gateway Integration for WooCommerce <cite>By <a href="https://razorpay.com">Team Razorpay</a>.</cite>', $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. <cite>By <a href="https://razorpay.com">Team Razorpay</a>.</cite>', $pluginData['Description']);
}
}

2 changes: 1 addition & 1 deletion tests/phpunit/tests/test-order-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 29d6a5a

Please sign in to comment.