From dd9369d3a7ae65088579984af0dd8c2d42e9670e Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 26 Jan 2023 00:01:58 -0800 Subject: [PATCH] (NFC) JSTest - Speed up ~60% Before: On local i3-12100, takes ~34s (avg over two runs) After: On local i3-12100, take ~14s (avg over two runs) --- tests/phpunit/CRM/Utils/JSTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/CRM/Utils/JSTest.php b/tests/phpunit/CRM/Utils/JSTest.php index 482d56c062..199e4939c5 100644 --- a/tests/phpunit/CRM/Utils/JSTest.php +++ b/tests/phpunit/CRM/Utils/JSTest.php @@ -15,6 +15,14 @@ */ class CRM_Utils_JSTest extends CiviUnitTestCase { + /** + * Set up for tests. + */ + public function setUp(): void { + $this->useTransaction(); + parent::setUp(); + } + /** * @return array */ -- 2.25.1