From 5ddab1b9896c74274e4f338e02e805be63871983 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 25 Jan 2023 23:57:12 -0800 Subject: [PATCH] (NFC) RuleTest - Speed up ~55% Before: On local i3-12100, takes ~64s (avg over two runs) After: On local i3-12100, take ~28s (avg over two runs) --- tests/phpunit/CRM/Utils/RuleTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/CRM/Utils/RuleTest.php b/tests/phpunit/CRM/Utils/RuleTest.php index df34622743..007887b11c 100644 --- a/tests/phpunit/CRM/Utils/RuleTest.php +++ b/tests/phpunit/CRM/Utils/RuleTest.php @@ -6,6 +6,14 @@ */ class CRM_Utils_RuleTest extends CiviUnitTestCase { + /** + * Set up for tests. + */ + public function setUp(): void { + $this->useTransaction(); + parent::setUp(); + } + /** * @dataProvider integerDataProvider * @param $inputData -- 2.25.1