*/
class CRM_Utils_SQL_DeleteTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testGetDefault() {
$del = CRM_Utils_SQL_Delete::from('foo');
$this->assertLike('DELETE FROM foo', $del->toSQL());
*/
class CRM_Utils_SQL_InsertTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testRow_twice() {
$insert = CRM_Utils_SQL_Insert::into('foo')
->row(['first' => '1', 'second' => '2'])
*/
class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testGetDefault() {
$select = CRM_Utils_SQL_Select::from('foo bar');
$this->assertLike('SELECT * FROM foo bar', $select->toSQL());
*/
class CRM_Utils_SQLTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testInterpolate() {
// This function is a thin wrapper for `CRM_Utils_SQL_BaseParamQuery::interpolate()`, which already has
// lots of coverage in other test classes. This test just checks the basic wiring.
*/
class CRM_Utils_SignerTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testSignValidate() {
$cases = [];
$cases[] = [
*/
class CRM_Utils_SystemTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
public function testUrlQueryString() {
$config = CRM_Core_Config::singleton();
$this->assertTrue($config->userSystem instanceof CRM_Utils_System_UnitTests);
*/
class CRM_Utils_TimeTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
/**
* Equal cases.
*
*/
class CRM_Utils_TokenTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
/**
* Test for replaceGreetingTokens.
*
private $file = FALSE;
public function setUp(): void {
+ $this->useTransaction();
parent::setUp();
$this->file = FALSE;
}
*/
class CRM_Utils_versionCheckTest extends CiviUnitTestCase {
+ public function setUp(): void {
+ $this->useTransaction();
+ parent::setUp();
+ }
+
/**
* @var array
*/