From 6978e1eb5977e3c4de966ab8dfaf5aefa0a19820 Mon Sep 17 00:00:00 2001 From: Divyajose <75604843+divya-intelli@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:57:00 +0530 Subject: [PATCH] Fix for depreaction float to int loses precision (#456) --- tests/src/Functional/ApigeeX/PurchasedProductListTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Functional/ApigeeX/PurchasedProductListTest.php b/tests/src/Functional/ApigeeX/PurchasedProductListTest.php index c71068e2..ecc0b9d0 100755 --- a/tests/src/Functional/ApigeeX/PurchasedProductListTest.php +++ b/tests/src/Functional/ApigeeX/PurchasedProductListTest.php @@ -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');