Skip to content
Snippets Groups Projects
Commit 0c5f4032 authored by totten's avatar totten
Browse files

(NFC) Speed up more random tests

parent 72e287b2
Branches
Tags
No related merge requests found
......@@ -12,6 +12,7 @@ class CRM_Utils_API_MatchOptionTest extends CiviUnitTestCase {
public $noise;
public function setUp(): void {
$this->useTransaction();
parent::setUp();
$this->assertDBQuery(0, "SELECT count(*) FROM civicrm_contact WHERE first_name='Jeffrey' and last_name='Lebowski'");
......
......@@ -12,6 +12,7 @@
class CRM_Utils_API_ReloadOptionTest extends CiviUnitTestCase {
public function setUp(): void {
$this->useTransaction();
parent::setUp();
CRM_Utils_Hook_UnitTests::singleton()->setHook('civicrm_post', [$this, 'onPost']);
}
......
......@@ -8,6 +8,11 @@
*/
class CRM_Utils_Check_Component_EnvTest extends CiviUnitTestCase {
public function setUp(): void {
$this->useTransaction();
parent::setUp();
}
/**
* File check test should fail if reached maximum timeout.
* @throws \GuzzleHttp\Exception\GuzzleException
......
......@@ -8,6 +8,11 @@
*/
class CRM_Utils_Check_Component_OptionGroupsTest extends CiviUnitTestCase {
public function setUp(): void {
$this->useTransaction();
parent::setUp();
}
public function testCheckOptionGroupValues() {
$optionGroup = $this->callAPISuccess('OptionGroup', 'create', [
'name' => 'testGroup',
......
......@@ -6,6 +6,11 @@
*/
class CRM_Utils_ColorTest extends CiviUnitTestCase {
public function setUp(): void {
$this->useTransaction();
parent::setUp();
}
/**
* @dataProvider contrastExamples
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment