Skip to content

Commit

Permalink
Fix for depreaction float to int loses precision (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-intelli authored Oct 18, 2023
1 parent 9b66c9a commit 6978e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/Functional/ApigeeX/PurchasedProductListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function testPurchasedPlanListView() {

$default_timezone = new \DateTimeZone('UTC');
$datetimeImmutable = new \DateTimeImmutable();
$start_time = $datetimeImmutable->setTimezone($default_timezone)->setTimestamp($purchased_product->getStartTime() / 1000)->format('m/d/Y');
$start_time = $datetimeImmutable->setTimezone($default_timezone)->setTimestamp((int) ($purchased_product->getStartTime() / 1000))->format('m/d/Y');

// Checking my purchased plans table columns.
$this->assertCssElementText('.purchased-plan-row:nth-child(1) td.purchased-plan-status', 'Active');
Expand Down

0 comments on commit 6978e1e

Please sign in to comment.