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'");
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']);
}
*/
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
*/
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',
*/
class CRM_Utils_ColorTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
/**
* @dataProvider contrastExamples
*/