CRM-13072 mark non e-notice compliant tests
authoreileen <eileen@fuzion.co.nz>
Fri, 26 Jul 2013 02:09:46 +0000 (14:09 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 26 Jul 2013 02:09:46 +0000 (14:09 +1200)
tests/phpunit/CRM/Core/BAO/CustomFieldTest.php
tests/phpunit/CRM/Core/BAO/PhoneTest.php
tests/phpunit/CRM/Core/BAO/SettingTest.php
tests/phpunit/CRM/Core/CommunityMessagesTest.php
tests/phpunit/CRM/Core/ManagedEntitiesTest.php
tests/phpunit/CRM/Core/Page/AJAXTest.php
tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php
tests/phpunit/CRM/Core/Payment/BaseIPNTest.php
tests/phpunit/CRM/Event/BAO/ParticipantTest.php
tests/phpunit/api/v3/dataset/financial_accounts.xml [deleted file]

index ab66a26539284e7699ab391a5d68746c6790b235..6d85f26f92e889324aaf88e9d0e14b65b49b472c 100644 (file)
@@ -3,6 +3,10 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 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',
@@ -47,7 +51,7 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
 
     Custom::deleteGroup($customGroup);
   }
-  
+
   function testCreateCustomfieldColumnName() {
     $customGroup = Custom::createGroup(array(), 'Individual');
     $fields = array(
@@ -232,8 +236,8 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
 
     // 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(
@@ -244,8 +248,8 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
 
     // 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(
@@ -257,8 +261,8 @@ class CRM_Core_BAO_CustomFieldTest extends CiviUnitTestCase {
 
     // 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(
index d7b7726f45081570747dc1ff24b4750f82d7e99b..ab4fdb3055cd53b410d6f02b989d6dc950e7e4af 100644 (file)
@@ -31,6 +31,10 @@ require_once 'CiviTest/Contact.php';
 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',
index 097dce012e6b7a535c24f4395883406ea27c1298..552bd5b9838d9b39d044352a4635edd9a22bbe21 100644 (file)
 
 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',
index 82bafe0ef0544b2db65554bf7fe4dd281247faec..dde94c6c5f9c3560d6fcd83343a2bc582f063d2d 100644 (file)
 
 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
    */
index bd0b99795381e29d3f0bd8f7ca3356bf00e73aab..ff7b704e48b01ee40d05cd59d472642e313391d4 100644 (file)
@@ -3,6 +3,10 @@
 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',
index 35c9dfb75d0d52251f0ae6f310e498b811bb8ae2..28adafd279e4896dc08a2cb1786c980abe0b4bc5 100644 (file)
@@ -3,6 +3,10 @@
 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();
 
index 11619b5542957fac6b08ce31849bc127ca3f8b32..d35872a40ad7eb6994390406d55c3a52b9994c75 100644 (file)
@@ -30,6 +30,10 @@ require_once 'CiviTest/CiviUnitTestCase.php';
 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',
index b803f8afd84ad4f808fb25e36d98515479ceaaf9..def539fe07d2383abbfbfbf95f9ea3ba75c72823 100644 (file)
 
 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;
index 143a850b2a904dcb003a3e395e91d8e1fd9ab61c..253f32a9ccca2f27861f3a4b3f7cbe3d2427866e 100644 (file)
@@ -32,6 +32,10 @@ require_once 'CiviTest/Contact.php';
 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',
diff --git a/tests/phpunit/api/v3/dataset/financial_accounts.xml b/tests/phpunit/api/v3/dataset/financial_accounts.xml
deleted file mode 100644 (file)
index 5cfee5c..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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>