require_once 'CiviTest/Contact.php';
require_once 'CiviTest/Custom.php';
class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'Custom Field BAOs',
Custom::deleteGroup($customGroup);
}
-
+
function testCreateCustomfieldColumnName() {
$customGroup = Custom::createGroup(array(), 'Individual');
$fields = array(
// Alice: Group[B] has fields[countryB], but fields[countryC] did not exist before
$this->assertDBQuery(1,
- "SELECT count(*) FROM {$groups['B']->table_name}
- WHERE entity_id = %1
+ "SELECT count(*) FROM {$groups['B']->table_name}
+ WHERE entity_id = %1
AND {$fields['countryB']->column_name} = %3
AND {$fields['countryC']->column_name} is null",
array(
// Bob: Group[B] has merged fields[countryB] and fields[countryC] on the same record
$this->assertDBQuery(1,
- "SELECT count(*) FROM {$groups['B']->table_name}
- WHERE entity_id = %1
+ "SELECT count(*) FROM {$groups['B']->table_name}
+ WHERE entity_id = %1
AND {$fields['countryB']->column_name} = %3
AND {$fields['countryC']->column_name} = %4",
array(
// Carol: Group[B] still has fields[countryC] but did not get fields[countryB]
$this->assertDBQuery(1,
- "SELECT count(*) FROM {$groups['B']->table_name}
- WHERE entity_id = %1
+ "SELECT count(*) FROM {$groups['B']->table_name}
+ WHERE entity_id = %1
AND {$fields['countryB']->column_name} is null
AND {$fields['countryC']->column_name} = %4",
array(
require_once 'CiviTest/Custom.php';
require_once 'CiviTest/Event.php';
class CRM_Core_BAO_PhoneTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'Phone BAOs',
require_once 'CiviTest/CiviUnitTestCase.php';
class CRM_Core_BAO_SettingTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'Setting BAO',
require_once 'CiviTest/CiviUnitTestCase.php';
class CRM_Core_CommunityMessagesTest extends CiviUnitTestCase {
-
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
/**
* @var CRM_Utils_Cache_Interface
*/
require_once 'CiviTest/CiviUnitTestCase.php';
class CRM_Core_ManagedEntitiesTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'ManagedEntities',
require_once 'CiviTest/CiviUnitTestCase.php';
class CRM_Core_Page_AJAXTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
public function testCheckAuthz() {
$cases = array();
require_once 'CiviTest/AuthorizeNet.php';
require_once 'CiviTest/Contact.php';
class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'Authorize.net processing',
require_once 'CiviTest/CiviUnitTestCase.php';
class CRM_Core_Payment_BaseIPNTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
protected $_contributionTypeId;
protected $_contributionParams;
protected $_contactId;
require_once 'CiviTest/Event.php';
require_once 'CiviTest/Participant.php';
class CRM_Event_BAO_ParticipantTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function get_info() {
return array(
'name' => 'Participant BAOs',
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<!-- $Id: -->
-<dataset>
- <table name="civicrm_financial_account">
- <column>id</column>
- <column>name</column>
- <column>accounting_code</column>
- <column>description</column>
- <column>is_deductible</column>
- <column>is_reserved</column>
- <column>is_active</column>
- <column>financial_account_type_id</column>
- <row>
- <value>10</value> <!-- id -->
- <value>Gift</value> <!-- name -->
- <value>1004</value> <!-- accounting_code -->
- <value>For some worthwhile cause</value> <!-- description -->
- <value>0</value> <!-- is_deductible -->
- <null /> <!-- is_reserved -->
- <value>1</value> <!-- is_active -->
- <value>3</value> <!-- financial_account_type_id -->
- </row>
- <row>
- <value>11</value> <!-- id -->
- <value>Prize</value> <!-- name -->
- <value>1005</value> <!-- accounting_code -->
- <value>Also for some worthwhile cause</value> <!-- description -->
- <value>0</value> <!-- is_deductible -->
- <null /> <!-- is_reserved -->
- <value>1</value> <!-- is_active -->
- <value>3</value> <!-- financial_account_type_id -->
- </row>
- </table>
-</dataset>