From 8166e9082246551fe6338a884d784a5d1ae89660 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 26 Jan 2023 00:05:32 -0800 Subject: [PATCH] (NFC) StringTest - 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/StringTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/CRM/Utils/StringTest.php b/tests/phpunit/CRM/Utils/StringTest.php index ed452120f7..1e4cfdf5b8 100644 --- a/tests/phpunit/CRM/Utils/StringTest.php +++ b/tests/phpunit/CRM/Utils/StringTest.php @@ -6,6 +6,14 @@ */ class CRM_Utils_StringTest extends CiviUnitTestCase { + /** + * Set up for tests. + */ + public function setUp(): void { + $this->useTransaction(); + parent::setUp(); + } + public function testBase64Url(): void { $examples = [ 'a' => 'YQ', -- 2.25.1