From b1905546a8ffd63817b76b363de1f8b56d3c947c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 25 Jan 2023 23:42:16 -0800 Subject: [PATCH] (NFC) DateTest - Speed up ~55% Before: On local i3-12100, takes ~90s (avg over 2 runs) After: On local i3-12100, take ~40s (avg over 2 runs) --- tests/phpunit/CRM/Utils/DateTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/CRM/Utils/DateTest.php b/tests/phpunit/CRM/Utils/DateTest.php index dd7bc091bd..69db971e49 100644 --- a/tests/phpunit/CRM/Utils/DateTest.php +++ b/tests/phpunit/CRM/Utils/DateTest.php @@ -26,6 +26,14 @@ */ class CRM_Utils_DateTest extends CiviUnitTestCase { + /** + * Set up for tests. + */ + public function setUp(): void { + $this->useTransaction(); + parent::setUp(); + } + /** * Used by testGetFromTo */ -- 2.25.1