*/
class CRM_Custom_Form_OptionTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* Test the `name` field doesn't get changed when editing an existing option.
*/
*/
class CRM_Custom_Page_AJAXTest extends CiviUnitTestCase {
- /**
- * Set up function.
- */
- public function setUp() {
- parent::setUp();
- }
-
/**
* Test multi-record custom fields
*/
*/
class CRM_Event_Form_Registration_RegistrationTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* CRM-19626 - Test minimum value configured for priceset.
*/
*/
class CRM_Extension_BrowserTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
- public function tearDown(): void {
- parent::tearDown();
- }
-
public function testDisabled() {
$browser = new CRM_Extension_Browser(FALSE, '/index.html', 'file:///itd/oesn/tmat/ter');
$this->assertEquals(FALSE, $browser->isEnabled());
*/
class CRM_Extension_Container_BasicTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
- public function tearDown(): void {
- parent::tearDown();
- }
-
public function testGetKeysEmpty() {
$basedir = $this->createTempDir('ext-empty-');
$c = new CRM_Extension_Container_Basic($basedir, 'http://example/basedir', NULL, NULL);
*/
class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
- public function tearDown(): void {
- parent::tearDown();
- }
-
public function testGetKeysEmpty() {
$c = new CRM_Extension_Container_Collection([]);
$this->assertEquals($c->getKeys(), []);
*/
class CRM_Extension_Container_StaticTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
- public function tearDown(): void {
- parent::tearDown();
- }
-
public function testGetKeysEmpty() {
$c = new CRM_Extension_Container_Static([]);
$this->assertEquals($c->getKeys(), []);
*/
class CRM_Financial_BAO_FinancialItemTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* Clean up after each test.
*/
*/
class CRM_Financial_BAO_PaymentProcessorTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* Check method create()
*/
*/
class CRM_Financial_BAO_PaymentProcessorTypeTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* Check method create()
*/
protected $allowedContactId = 0;
- public function setUp() {
- parent::setUp();
- }
-
public function tearDown(): void {
global $dbLocale;
if ($dbLocale) {
return new CRM_Mailing_BAO_QueryTestDataProvider();
}
- public function setUp() {
- parent::setUp();
- }
-
public function tearDown(): void {
$tablesToTruncate = [
'civicrm_mailing_event_bounce',
*/
class CRM_Member_StatusOverrideTypesTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testIsOverriddenReturnFalseForNoStatusOverrideType() {
$statusOverrideTypes = new CRM_Member_StatusOverrideTypes();
$isOverridden = $statusOverrideTypes::isOverridden(CRM_Member_StatusOverrideTypes::NO);
*/
class CRM_UF_Page_ProfileEditorTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* Spot check a few fields that should appear in schema.
*/
*/
class CRM_Utils_AddressTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testAddressFormat() {
$contact = $this->callAPISuccess('contact', 'create', [
'first_name' => 'Micky',
*/
class CRM_Utils_Check_Component_EnvTest extends CiviUnitTestCase {
- public function setUp() {
- 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() {
- parent::setUp();
- }
-
public function testCheckOptionGroupValues() {
$optionGroup = $this->callAPISuccess('OptionGroup', 'create', [
'name' => 'testGroup',
*/
class CRM_Utils_HtmlToTextTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* @return array
*/
*/
class CRM_Utils_RestTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testProcessMultiple() {
$_SERVER['REQUEST_METHOD'] = 'POST';
$input = [
*/
class CRM_Utils_RuleTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* @dataProvider integerDataProvider
* @param $inputData
*/
class CRM_Utils_SignerTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testSignValidate() {
$cases = [];
$cases[] = [
*/
class CRM_Utils_StringTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testBase64Url() {
$examples = [
'a' => 'YQ',
*/
class CRM_Utils_SystemTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
public function testUrlQueryString() {
$config = CRM_Core_Config::singleton();
$this->assertTrue($config->userSystem instanceof CRM_Utils_System_UnitTests);
*/
class CRM_Utils_TypeTest extends CiviUnitTestCase {
- public function setUp() {
- parent::setUp();
- }
-
/**
* @dataProvider validateDataProvider
* @param $inputData
return $c;
}
- protected function setUp() {
- parent::setUp();
- }
-
/**
* @param array $apiRequest
* Array(entity=>$,action=>$,params=>$,expectedResults=>$).