<?php
+
+/**
+ * Class test_extension_manager_paymenttest
+ */
class test_extension_manager_paymenttest extends CRM_Core_Payment {
static private $_singleton = NULL;
<?php
+/**
+ * Class test_extension_manager_reporttest
+ */
class test_extension_manager_reporttest extends CRM_Core_Report {
+ /**
+ *
+ */
function __construct() {
$logging = new CRM_Logging_Schema;
$this->tables[] = 'civicrm_contact';
<?php
require_once 'CRM/Contact/Form/Search/Custom/Base.php';
+
+/**
+ * Class test_extension_manager_searchtest
+ */
class test_extension_manager_searchtest extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface {
/**
* @param $formValues
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Activity_BAO_ActivityTest
+ */
class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Activity BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Case_BAO_CaseTest
+ */
class CRM_Case_BAO_CaseTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Case BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Case_PseudoConstantTest
+ */
class CRM_Case_PseudoConstantTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Case PseudoConstants',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Case_XMLRepositoryTest
+ */
class CRM_Case_XMLRepositoryTest extends CiviUnitTestCase {
protected $fixtures = array();
$this->assertEquals(2, $repo->getRelationshipReferenceCount('Second Role'));
$this->assertEquals(1, $repo->getRelationshipReferenceCount('Third Role'));
}
-}
\ No newline at end of file
+}
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * Class CRM_Contact_BAO_ContactTest
+ */
class CRM_Contact_BAO_ContactTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Contact BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Contact_BAO_ContactType_ContactSearchTest
+ */
class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Contact Serach Subtype',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Contact_BAO_ContactType_ContactTest
+ */
class CRM_Contact_BAO_ContactType_ContactTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Contact Subtype',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Contact_BAO_ContactType_ContactTypeTest
+ */
class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Contact Subtype',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Contact_BAO_ContactType_RelationshipTest
+ */
class CRM_Contact_BAO_ContactType_RelationshipTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Relationship Subtype',
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * Class CRM_Core_BAO_CustomFieldTest
+ */
class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Custom Field BAOs',
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * 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)',
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * 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',
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * Class CRM_Core_BAO_CustomValueTableTest
+ */
class CRM_Core_BAO_CustomValueTableTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Custom Value Table BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Core_BAO_EmailTest
+ */
class CRM_Core_BAO_EmailTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Email BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Core_BAO_IMTest
+ */
class CRM_Core_BAO_IMTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'IM BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Core_BAO_OpenIDTest
+ */
class CRM_Core_BAO_OpenIDTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'OpenID BAOs',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Core_BAO_UFFieldTest
+ */
class CRM_Core_BAO_UFFieldTest extends CiviUnitTestCase {
function setUp() {
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Core_DAO_AllCoreTablesTest
+ */
class CRM_Core_DAO_AllCoreTablesTest extends CiviUnitTestCase {
public function testGetTableForClass() {
$this->assertEquals('civicrm_email', CRM_Core_DAO_AllCoreTables::getTableForClass('CRM_Core_DAO_Email'));
$this->assertEquals('civicrm_email', CRM_Core_DAO_AllCoreTables::getTableForClass('CRM_Core_BAO_Email'));
}
-}
\ No newline at end of file
+}
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Core_DAOTest
+ */
class CRM_Core_DAOTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'DAO',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_ManagedEntitiesTest
+ */
class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'ManagedEntities',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_Page_AJAXTest
+ */
class CRM_Core_Page_AJAXTest extends CiviUnitTestCase {
public function testCheckAuthz() {
$cases = array();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_Permission_BaseTest
+ */
class CRM_Core_Permission_BaseTest extends CiviUnitTestCase {
/**
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_Permission_GenericTest
+ */
class CRM_Core_Permission_GenericTest extends CiviUnitTestCase {
/**
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_Permission_JoomlaTest
+ */
class CRM_Core_Permission_JoomlaTest extends CiviUnitTestCase {
/**
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_RegionTest
+ */
class CRM_Core_RegionTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Region',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Core_Smarty_plugins_CrmScopeTest
+ */
class CRM_Core_Smarty_plugins_CrmScopeTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
+
+/**
+ * Class CRM_Core_TransactionTest
+ */
class CRM_Core_TransactionTest extends CiviUnitTestCase {
function setUp() {
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CiviTest/Contact.php';
+
+/**
+ * Class CRM_Dedupe_DedupeFinderTest
+ */
class CRM_Dedupe_DedupeFinderTest extends CiviUnitTestCase {
function testFuzzyDupes() {
// make dupe checks based on based on following contact sets:
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_BrowserTest
+ */
class CRM_Extension_BrowserTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Container_BasicTest
+ */
class CRM_Extension_Container_BasicTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Container_StaticTest
+ */
class CRM_Extension_Container_StaticTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_InfoTest
+ */
class CRM_Extension_InfoTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Manager_ModuleTest
+ */
class CRM_Extension_Manager_ModuleTest extends CiviUnitTestCase {
//@todo make BAO enotice compliant & remove the line below
// WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Manager_ReportTest
+ */
class CRM_Extension_Manager_ReportTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Manager_SearchTest
+ */
class CRM_Extension_Manager_SearchTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_MapperTest
+ */
class CRM_Extension_MapperTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Group_Page_AjaxTest
+ */
class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
/**
* Permissioned group is used both as an active group the contact can see and as a group that allows
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_UF_Page_ProfileEditorTest
+ */
class CRM_UF_Page_ProfileEditorTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_ArrayTest
+ */
class CRM_Utils_ArrayTest extends CiviUnitTestCase {
function testBreakReference() {
// Get a reference and make a change
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_Cache_SqlGroupTest
+ */
class CRM_Utils_Cache_SqlGroupTest extends CiviUnitTestCase {
function setUp() {
parent::setUp();
require_once 'CiviTest/CiviUnitTestCase.php';
require_once 'CRM/Utils/DeprecatedUtils.php';
+/**
+ * Class CRM_Utils_DeprecatedUtilsTest
+ */
class CRM_Utils_DeprecatedUtilsTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Deprecated Utils Test',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_FileTest
+ */
class CRM_Utils_FileTest extends CiviUnitTestCase {
function testIsChildPath() {
$testCases = array();
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_GlobalStackTest
+ */
class CRM_Utils_GlobalStackTest extends CiviUnitTestCase {
public function testPushPop() {
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_HookTest
+ */
class CRM_Utils_HookTest extends CiviUnitTestCase {
static $activeTest = NULL;
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_HtmlToTextTest
+ */
class CRM_Utils_HtmlToTextTest extends CiviUnitTestCase {
protected $_testInput = array(
'<br><p>' => '', // empty test
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_HttpClientTest
+ */
class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
const VALID_HTTP_URL = 'http://sandbox.civicrm.org/';
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_MailTest
+ */
class CRM_Utils_MailTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Mail Test',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_Migrate_ImportExportTest
+ */
class CRM_Utils_Migrate_ImportExportTest extends CiviUnitTestCase {
protected $_apiversion;
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_NumberTest
+ */
class CRM_Utils_NumberTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function randomDecimalCases() {
$cases = array();
// array(array $precision, int $expectedMinInclusive, int $expectedMaxExclusive)
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_RestTest
+ */
class CRM_Utils_RestTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Rest Test',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_RuleTest
+ */
class CRM_Utils_RuleTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Rule Test',
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_SQL_SelectTest
+ */
class CRM_Utils_SQL_SelectTest extends CiviUnitTestCase {
function testGetDefault() {
$select = CRM_Utils_SQL_Select::from('foo bar');
<?php
require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Utils_StringTest
+ */
class CRM_Utils_StringTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'String Test',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_SystemTest
+ */
class CRM_Utils_SystemTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'System Test',
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Utils_TypeTest
+ */
class CRM_Utils_TypeTest extends CiviUnitTestCase {
+ /**
+ * @return array
+ */
function get_info() {
return array(
'name' => 'Type Test',
*
* @return $paymentProcessor id of created payment processor
*/
+ /**
+ * @return CRM_Financial_DAO_PaymentProcessor
+ */
function create() {
$paymentProcessor = new CRM_Financial_DAO_PaymentProcessor();
<?php
+
+/**
+ * Class Contact
+ */
class Contact extends CiviUnitTestCase {
/**
* Helper function to create
<?php
+
+/**
+ * Class ContributionPage
+ */
class ContributionPage extends PHPUnit_Framework_Testcase {
/**
* Helper function to create
<?php
+
+/**
+ * Class Custom
+ */
class Custom extends CiviUnitTestCase {
/**
* Helper function to create Custom Group
<?php
+
+/**
+ * Class Event
+ */
class Event extends PHPUnit_Framework_Testcase {
/**
* Helper function to create
<?php
require_once 'Contact.php';
+
+/**
+ * Class Membership
+ */
class Membership extends PHPUnit_Framework_Testcase {
/**
* Helper function to create membership type
<?php
+
+/**
+ * Class PCPBlock
+ */
class PCPBlock extends PHPUnit_Framework_Testcase {
/**
* Helper function to create a PCP Block for Contribution Page
<?php
+
+/**
+ * Class Participant
+ */
class Participant extends PHPUnit_Framework_Testcase {
/**
* Helper function to create a Participant
<?php
require_once "CRM/Financial/DAO/PaymentProcessor.php";
+
+/**
+ * Class PaypalPro
+ */
class PaypalPro extends PHPUnit_Framework_Testcase {
/**
* Helper function to create
<?php
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Event_EventListingTest
+ */
class WebTest_Event_EventListingTest extends CiviSeleniumTestCase {
protected function setUp() {
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class api_v3_CustomSearchTest
+ */
class api_v3_CustomSearchTest extends CiviUnitTestCase {
protected $_apiversion;
<?php
+/**
+ * @param $params
+ *
+ * @return array
+ */
function civicrm_api3_contact_example_action2($params) {
return civicrm_api3_create_success(
array('0' => 'civicrm_api3_contact_example_action2 is ok'),
<?php
+/**
+ * @param $apiRequest
+ *
+ * @return array
+ */
function civicrm_api3_generic_example_action1($apiRequest) {
return civicrm_api3_create_success(
array('0' => 'civicrm_api3_generic_example_action1 is ok'),
<?php
+/**
+ * @param $apiRequest
+ *
+ * @return array
+ */
function civicrm_api3_generic_example_action2($apiRequest) {
return civicrm_api3_create_success(
array('0' => 'civicrm_api3_generic_example_action2 should not be called'),
<?php
+/**
+ * @param $params
+ *
+ * @return array
+ */
function civicrm_api3_test_entity_example_action3($params) {
return civicrm_api3_create_success(
array('0' => 'civicrm_api3_test_entity_example_action3 is ok'),