* Class CRM_Activity_BAO_ActivityTest
*/
class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Activity BAOs',
- 'description' => 'Test all Activity_BAO_Activity methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
*/
protected $_contactID4 = NULL;
- /**
- * Describe test class
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipParserTest',
- 'description' => 'Test import parser function',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
* Class CRM_Case_BAO_CaseTest
*/
class CRM_Case_BAO_CaseTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Case BAOs',
- 'description' => 'Test Case_BAO_Case methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Case_PseudoConstantTest
*/
class CRM_Case_PseudoConstantTest extends CiviCaseTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Case PseudoConstants',
- 'description' => 'Test Case_PseudoConstant methods.',
- 'group' => 'Case',
- );
- }
function testCaseType() {
CRM_Core_PseudoConstant::flush();
* Class CRM_Contact_BAO_ContactTest
*/
class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact BAOs',
- 'description' => 'Test all Contact_BAO_Contact methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Contact_BAO_ContactType_ContactSearchTest
*/
class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact Search Subtype',
- 'description' => 'Test Contact for subtype.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contact_BAO_ContactType_ContactTest
*/
class CRM_Contact_BAO_ContactType_ContactTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact Subtype',
- 'description' => 'Test Contact for subtype.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contact_BAO_ContactType_ContactTypeTest
*/
class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact Subtype',
- 'description' => 'Test Contact for subtype.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contact_BAO_ContactType_RelationshipTest
*/
class CRM_Contact_BAO_ContactType_RelationshipTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Relationship Subtype',
- 'description' => 'Test Relattionship for subtype.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Include dataProvider for tests
*/
class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact BAO Query',
- 'description' => 'Test all Contact_BAO_Query methods.',
- 'group' => 'CiviCRM BAO Query Tests',
- );
- }
/**
* @return CRM_Contact_BAO_QueryTestDataProvider
'civicrm_option_group',
);
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact Custom Search Group',
- 'description' => 'Test all CRM_Contact_Form_Search_Custom_Group methods.',
- 'group' => 'CiviCRM Custom Search Tests',
- );
- }
-
/**
* @return CRM_Contact_Form_Search_Custom_GroupTestDataProvider
*/
* Class CRM_Contribute_BAO_ContributionPageTest
*/
class CRM_Contribute_BAO_ContributionPageTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contribution BAOs',
- 'description' => 'Test all Contribute_BAO_ContributionPage methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contribute_BAO_ContributionTest
*/
class CRM_Contribute_BAO_ContributionTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contribution BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contribute_BAO_ContributionTypeTest
*/
class CRM_Contribute_BAO_ContributionTypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialAccount BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Contribute_BAO_ManagePremiumsTest
*/
class CRM_Contribute_BAO_ManagePremiumsTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'ManagePremiums BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
*/
var $mut;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Action-Schedule BAO',
- 'description' => 'Test sending of scheduled notifications.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_AddressTest
*/
class CRM_Core_BAO_AddressTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Address BAOs',
- 'description' => 'Test all Core_BAO_Address methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomFieldTest
*/
class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Field BAOs',
- 'description' => 'Test all Core_BAO_CustomField methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomGroupTest
*/
class CRM_Core_BAO_CustomGroupTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'CustomGroup BAOs',
- 'description' => 'Test all Core_BAO_CustomGroup methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomValueTableMultipleTest
*/
class CRM_Core_BAO_CustomValueTableMultipleTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Value Table BAOs (multipe value)',
- 'description' => 'Test all Core_BAO_CustomValueTable methods. (for multiple values)',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomValueTableSetGetTest
*/
class CRM_Core_BAO_CustomValueTableSetGetTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Value Table BAO setValues and getValues',
- 'description' => 'Test setValues and getValues Core_BAO_CustomValueTable methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomValueTableTest
*/
class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Value Table BAOs',
- 'description' => 'Test all Core_BAO_CustomValueTable methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_CustomValueTest
*/
class CRM_Core_BAO_CustomValueTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'CustomValue BAOs',
- 'description' => 'Test all Core_BAO_CustomValue methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function testTypeCheckWithValidInput() {
$values = array();
* Class CRM_Core_BAO_EmailTest
*/
class CRM_Core_BAO_EmailTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Email BAOs',
- 'description' => 'Test all Core_BAO_Email methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_FinancialTrxnTest
*/
class CRM_Core_BAO_FinancialTrxnTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialTrxn BAOs',
- 'description' => 'Test all CRM_Core_BAO_ContributionTrxn methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Core_BAO_IMTest
*/
class CRM_Core_BAO_IMTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'IM BAOs',
- 'description' => 'Test all Core_BAO_IM methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Core_BAO_LocationTest
*/
class CRM_Core_BAO_LocationTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Location BAOs',
- 'description' => 'Test all Core_BAO_Location methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_OpenIDTest
*/
class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'OpenID BAOs',
- 'description' => 'Test all Core_BAO_OpenID methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function tearDown() {
// If we truncate only contact, then stale domain and openid records will be left.
// If we truncate none of these tables, then contactDelete() will incrementally
* Class CRM_Core_BAO_PhoneTest
*/
class CRM_Core_BAO_PhoneTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Phone BAOs',
- 'description' => 'Test all Core_BAO_Phone methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_PreferencesTest
*/
class CRM_Core_BAO_PreferencesTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Preference BAO',
- 'description' => 'Test set/get on preference variables.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_BAO_RecurringEntityTest
*/
class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Recurring Entity BAOs',
- 'description' => 'Test all CRM_Event_BAO_RecurringEntity methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
/**
* Sets up the fixture, for example, opens a network connection.
* Class CRM_Core_BAO_SettingTest
*/
class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Setting BAO',
- 'description' => 'Test set/get on setting variables.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
global $civicrm_setting;
* Class CRM_Core_DAOTest
*/
class CRM_Core_DAOTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'DAO',
- 'description' => 'Test core DAO functions',
- 'group' => 'Core',
- );
- }
function testGetReferenceColumns() {
// choose CRM_Core_DAO_Email as an arbitrary example
* Tests for linking to resource files
*/
class CRM_Core_ErrorTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Errors',
- 'description' => 'Tests for error handling',
- 'group' => 'Core',
- );
- }
function setUp() {
parent::setUp();
* Tests for field options
*/
class CRM_Core_FieldOptionsTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FieldOptions',
- 'description' => 'Tests for field-specific option values',
- 'group' => 'Core',
- );
- }
-
function setUp() {
parent::setUp();
}
protected $fixtures;
- function get_info() {
- return array(
- 'name' => 'ManagedEntities',
- 'description' => 'Test automatic creation/deletion of entities',
- 'group' => 'Core',
- );
- }
-
function setUp() {
parent::setUp();
$this->modules = array(
protected $_contributionPageID;
protected $_paymentProcessorID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Authorize.net IPN processing',
- 'description' => 'Authorize.net IPN methods.',
- 'group' => 'Payment Processor Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_paymentProcessorID = $this->paymentProcessorCreate(array(
* Class CRM_Core_Payment_AuthorizeNetTest
*/
class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Authorize.net processing',
- 'description' => 'Test Authorize.ne methods.',
- 'group' => 'Payment Processor Tests',
- );
- }
function setUp() {
parent::setUp();
protected $objects;
public $DBResetRequired = FALSE;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'BaseIPN test',
- 'description' => 'Test BaseIPN methods (via subclass A.net).',
- 'group' => 'Payment Processor Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->input = $this->ids = $this->objects = array();
protected $_contributionPageID;
protected $_paymentProcessorID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PaypalPro IPN processing',
- 'rescription' => 'PaypalPro IPN methods.',
- 'group' => 'Payment Processor Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_paymentProcessorID = $this->paymentProcessorCreate();
* Class CRM_Core_PaymentTest
*/
class CRM_Core_PaymentTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Payment Test',
- 'description' => 'Test Payment methods.',
- 'group' => 'Payment Processor Tests',
- );
- }
/**
* Test the payment method is adequately logged - we don't expect the processing to succeed
* Tests for pseudoconstant retrieval
*/
class CRM_Core_PseudoConstantTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PseudoConstant',
- 'description' => 'Tests for pseudoconstant option values',
- 'group' => 'Core',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Core_RegionTest
*/
class CRM_Core_RegionTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Region',
- 'description' => 'Smarty-region rendering test',
- 'group' => 'Core',
- );
- }
-
function setUp() {
parent::setUp();
require_once 'CRM/Core/Smarty.php';
* Tests for linking to resource files
*/
class CRM_Core_ResourcesTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Resources',
- 'description' => 'Tests for linking to resource files',
- 'group' => 'Core',
- );
- }
/**
* @var CRM_Core_Resources
* Class CRM_Event_BAO_AdditionalPaymentTest
*/
class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Additional Payment BAOs test',
- 'description' => 'BAOs testing done for addtional payment logic check',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
*/
protected function tearDown() {}
- /**
- * test info
- */
- function get_info() {
- return array(
- 'name' => 'ParticipantStatus BAOs',
- 'description' => 'Test all Event_BAO_ParticipantStatusType methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
/**
* create() and deleteParticipantStatusType() method
*/
* Class CRM_Event_BAO_ParticipantTest
*/
class CRM_Event_BAO_ParticipantTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Participant BAOs',
- 'description' => 'Test all Event_BAO_Participant methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
*/
class CRM_Financial_BAO_FinancialAccountTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialAccount BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->organizationCreate();
*/
class CRM_Financial_BAO_FinancialItemTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialItem BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
*/
class CRM_Financial_BAO_FinancialTypeAccountTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialTypeAccount BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->organizationCreate();
*/
class CRM_Financial_BAO_FinancialTypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'FinancialType BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
*/
class CRM_Financial_BAO_PaymentProcessorTypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PaymentProcessorType BAOs',
- 'description' => 'Test all Contribute_BAO_Contribution methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
protected $_params = array();
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Contact BAOs',
- 'description' => 'Test all Contact_BAO_Contact methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_params = array(
* Include dataProvider for tests
*/
class CRM_Mailing_BAO_QueryTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mailing BAO Query',
- 'description' => 'Test all Mailing_BAO_Query methods.',
- 'group' => 'CiviMail BAO Query Tests',
- );
- }
/**
* @return CRM_Mailing_BAO_QueryTestDataProvider
protected static $bodytext = 'Unit tests keep children safe.';
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Spool (redirect to database) Mailing Test',
- 'description' => 'Test emails when redirected to database. See also WebTest_Mailing_SpoolTest.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_mut = new CiviMailUtils( $this, true );
* @package CiviCRM
*/
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipLog Test',
- 'description' => 'Test all Membership Log methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Member_BAO_MembershipStatusTest
*/
class CRM_Member_BAO_MembershipStatusTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipStatus BAOs',
- 'description' => 'Test all Member_BAO_MembershipType methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Member_BAO_MembershipTest
*/
class CRM_Member_BAO_MembershipTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Membership BAOs',
- 'description' => 'Test all Member_BAO_Membership methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Member_BAO_MembershipTypeTest
*/
class CRM_Member_BAO_MembershipTypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipType BAOs',
- 'description' => 'Test all Member_BAO_MembershipType methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* @var String
*/
protected $_membershipTypeID = NULL;
- /**
- * Describe test class
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipParserTest',
- 'description' => 'Test import parser function',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* @package CiviCRM
*/
class CRM_PCP_BAO_PCPTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PCP BAOs',
- 'description' => 'Test all PCP_BAO_PCP methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
/**
* Sets up the fixture, for example, opens a network connection.
*/
protected function tearDown() {}
- /**
- * test info
- */
- function get_info() {
- return array(
- 'name' => 'PledgeBlock BAOs',
- 'description' => 'Test all Pledge_BAO_PledgeBlock methods.',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
/**
* create() and deletepledgeblock() method
*/
* priority-queueing.
*/
class CRM_Queue_Queue_SqlTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'SQL Queue',
- 'description' => 'Test SQL-backed queue items',
- 'group' => 'Queue',
- );
- }
/* ----------------------- Queue providers ----------------------- */
* Ensure that various queue implementations comply with the interface
*/
class CRM_Queue_QueueTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'SQL Queue',
- 'description' => 'Test SQL-backed queue items',
- 'group' => 'Queue',
- );
- }
/* ----------------------- Queue providers ----------------------- */
* Ensure that various queue implementations comply with the interface
*/
class CRM_Queue_RunnerTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'SQL Queue',
- 'description' => 'Test SQL-backed queue items',
- 'group' => 'Queue',
- );
- }
function setUp() {
parent::setUp();
*/
class CRM_Utils_DeprecatedUtilsTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Deprecated Utils Test',
- 'description' => 'Test functions that were copied from api v2 to support BAO code',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
',
);
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'HtmlToText Test',
- 'description' => 'Test htmlToText Function',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Utils_MailTest
*/
class CRM_Utils_MailTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mail Test',
- 'description' => 'Test RFC822 formatting',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
* Class CRM_Utils_RestTest
*/
class CRM_Utils_RestTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Rest Test',
- 'description' => 'Test Rest Interface Utilities',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
*/
class CRM_Utils_RuleTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Rule Test',
- 'description' => 'Test the validation rules',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
*/
class CRM_Utils_SignerTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Signer Test',
- 'description' => 'Test array-signing functions',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Utils_StringTest
*/
class CRM_Utils_StringTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'String Test',
- 'description' => 'Test String Functions',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
*/
class CRM_Utils_SystemTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'System Test',
- 'description' => 'Test system functions',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
*/
class CRM_Utils_TypeTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Type Test',
- 'description' => 'Test the validate function',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
* Class CRM_Utils_ZipTest
*/
class CRM_Utils_ZipTest extends CiviUnitTestCase {
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Zip Test',
- 'description' => 'Test Zip Functions',
- 'group' => 'CiviCRM BAO Tests',
- );
- }
function setUp() {
parent::setUp();
class api_v3_ActivityTypeTest extends CiviUnitTestCase {
protected $_apiversion;
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Activity Type',
- 'description' => 'Test all ActivityType Get/Create/Delete methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
CRM_Core_PseudoConstant::activityType(TRUE, TRUE, TRUE, 'name');
class api_v3_CustomFieldTest extends CiviUnitTestCase {
protected $_apiversion;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Field Create',
- 'description' => 'Test all Custom Field Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
parent::setUp();
public $DBResetRequired = TRUE;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Group Create',
- 'description' => 'Test all Custom Group Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_entity = 'CustomGroup';
$this->_params = array(
protected $CustomGroupIndividual;
protected $individualStudent;
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Custom Data For Contact Subtype',
- 'description' => 'Test Custom Data for Contact Subtype.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
// Create Group For Individual Contact Type
protected $_apiversion;
protected $_entity;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Event Create',
- 'description' => 'Test all Event Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_apiversion = 3;
protected $_apiversion = 3;
protected $_groupId1;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Group Contact Create',
- 'description' => 'Test all Group Contact Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
/**
* Set up for group contact tests
*
class api_v3_GroupOrganizationTest extends CiviUnitTestCase {
protected $_apiversion;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Group Organization',
- 'description' => 'Test all Group Organization API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
protected $_apiversion;
protected $_groupID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Group Get',
- 'description' => 'Test all Group Get API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
protected $_entity = 'MailingAB';
protected $_groupID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mailer',
- 'description' => 'Test all Mailer methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
protected $_email;
protected $_apiversion;
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mailer Group',
- 'description' => 'Test all Mailer Group methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_apiversion = 3;
protected $_entity = 'Mailing';
protected $_contactID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Mailer',
- 'description' => 'Test all Mailer methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction();
protected $_apiversion =3;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipStatus Calc',
- 'description' => 'Test all MembershipStatus Calc API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_contactID = $this->individualCreate();
protected $_apiversion;
protected $_entity = 'MembershipType';
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipType Create',
- 'description' => 'Test all Membership Type Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
parent::__construct();
}
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Note Create',
- 'description' => 'Test all Note Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
protected $_participantPaymentID;
protected $_contributionTypeId;
-
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Participant Create',
- 'description' => 'Test all Participant Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
protected $_individualId;
protected $_params;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Participant Create',
- 'description' => 'Test all Participant Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
parent::setUp();
protected $_apiversion = 3;
protected $_params;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PaymentProcessor Create',
- 'description' => 'Test all PaymentProcessor Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
protected $_ppTypeID;
protected $_apiversion;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'PaymentProcessorType Create',
- 'description' => 'Test all PaymentProcessorType Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
protected $_entity = 'Product';
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Product Tests',
- 'description' => 'Test product API',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->useTransaction();
protected $_membershipTypeID;
protected $_contactID;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Profile Test',
- 'description' => 'Test all profile API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
$this->_apiversion = 3;
parent::setUp();
protected $_entity;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Relationship Create',
- 'description' => 'Test all Relationship Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_cId_a = $this->individualCreate();
protected $_relTypeID;
protected $_apiversion = 3;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'RelationshipType Create',
- 'description' => 'Test all RelationshipType Create API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
}
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'Settings Tests',
- 'description' => 'Settings API',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$params = array(