remove more inline messages
authorTim Mallezie <tim.mallezie@chiro.be>
Thu, 21 May 2015 05:50:07 +0000 (07:50 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Thu, 21 May 2015 05:50:07 +0000 (07:50 +0200)
26 files changed:
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactSearchTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/ContactTypeTest.php
tests/phpunit/CRM/Contact/BAO/ContactType/RelationshipTest.php
tests/phpunit/CRM/Contact/BAO/QueryTest.php
tests/phpunit/CRM/Contact/Form/Search/Custom/GroupTest.php
tests/phpunit/CRM/Event/BAO/ParticipantTest.php
tests/phpunit/CRM/Mailing/BAO/QueryTest.php
tests/phpunit/CRM/Member/Form/MembershipTest.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/CaseTypeTest.php
tests/phpunit/api/v3/ContactTest.php
tests/phpunit/api/v3/ContributionSoftTest.php
tests/phpunit/api/v3/CustomFieldTest.php
tests/phpunit/api/v3/CustomGroupTest.php
tests/phpunit/api/v3/EmailTest.php
tests/phpunit/api/v3/EventTest.php
tests/phpunit/api/v3/GrantTest.php
tests/phpunit/api/v3/MembershipTypeTest.php
tests/phpunit/api/v3/NoteTest.php
tests/phpunit/api/v3/ParticipantTest.php
tests/phpunit/api/v3/PriceFieldTest.php
tests/phpunit/api/v3/PriceFieldValueTest.php
tests/phpunit/api/v3/TaxContributionPageTest.php
tests/phpunit/api/v3/UFJoinTest.php

index 8e90f5a3af5052065ab306a6d5ca398a31e02d07..d5f663a64485931ba4f066b1ca143c74052c6407 100644 (file)
@@ -298,7 +298,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
     //since we are loading activities from dataset, we know total number of activities
     // 8 schedule activities that should be shown on dashboard
     $count = 8;
-    $this->assertEquals($count, $activityCount, 'In line ' . __LINE__);
+    $this->assertEquals($count, $activityCount);
   }
 
   /**
@@ -328,7 +328,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
     //since we are loading activities from dataset, we know total number of activities for this contact
     // 5 activities ( 2 scheduled, 3 Completed ), note that dashboard shows only scheduled activities
     $count = 2;
-    $this->assertEquals($count, $activityCount, 'In line ' . __LINE__);
+    $this->assertEquals($count, $activityCount);
   }
 
   /**
@@ -357,7 +357,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
     //since we are loading activities from dataset, we know total number of activities for this contact
     // 5 activities, Contact Summary should show all activities
     $count = 5;
-    $this->assertEquals($count, $activityCount, 'In line ' . __LINE__);
+    $this->assertEquals($count, $activityCount);
   }
 
   /**
@@ -385,7 +385,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
 
     //since we are loading activities from dataset, we know total number of activities for this contact
     // this contact does not have any activity
-    $this->assertEquals(0, $activityCount, 'In line ' . __LINE__);
+    $this->assertEquals(0, $activityCount);
   }
 
   /**
index 492d62dbab30054db4edf63b2b6c230135855fed..f3630b9da6544f0b4716b36636687c793aa47d05 100644 (file)
@@ -101,19 +101,19 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $indiviParent = $result['values'][$this->indiviParent];
 
     //asserts for type:Individual
-    $this->assertEquals($individual['contact_id'], $this->individual, 'In line ' . __LINE__);
+    $this->assertEquals($individual['contact_id'], $this->individual);
     $this->assertEquals($individual['first_name'], $this->indiviParams['first_name']);
     $this->assertEquals($individual['contact_type'], $this->indiviParams['contact_type']);
     $this->assertNotContains('contact_sub_type', $individual);
 
     //asserts for type:Individual subtype:Student
-    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent, 'In line ' . __LINE__);
+    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent);
     $this->assertEquals($indiviStudent['first_name'], $this->indiviStudentParams['first_name']);
     $this->assertEquals($indiviStudent['contact_type'], $this->indiviStudentParams['contact_type']);
     $this->assertEquals(end($indiviStudent['contact_sub_type']), $this->indiviStudentParams['contact_sub_type']);
 
     //asserts for type:Individual subtype:Parent
-    $this->assertEquals($indiviParent['contact_id'], $this->indiviParent, 'In line ' . __LINE__);
+    $this->assertEquals($indiviParent['contact_id'], $this->indiviParent);
     $this->assertEquals($indiviParent['first_name'], $this->indiviParentParams['first_name']);
     $this->assertEquals($indiviParent['contact_type'], $this->indiviParentParams['contact_type']);
     $this->assertEquals(end($indiviParent['contact_sub_type']), $this->indiviParentParams['contact_sub_type']);
@@ -126,13 +126,13 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $orgSponsor = $result['values'][$this->orgSponsor];
 
     //asserts for type:Organization
-    $this->assertEquals($organization['contact_id'], $this->organization, 'In line ' . __LINE__);
+    $this->assertEquals($organization['contact_id'], $this->organization);
     $this->assertEquals($organization['organization_name'], $this->organizationParams['organization_name']);
     $this->assertEquals($organization['contact_type'], $this->organizationParams['contact_type']);
     $this->assertNotContains('contact_sub_type', $organization);
 
     //asserts for type:Organization subtype:Sponsor
-    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor, 'In line ' . __LINE__);
+    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor);
     $this->assertEquals($orgSponsor['organization_name'], $this->orgSponsorParams['organization_name']);
     $this->assertEquals($orgSponsor['contact_type'], $this->orgSponsorParams['contact_type']);
     $this->assertEquals(end($orgSponsor['contact_sub_type']), $this->orgSponsorParams['contact_sub_type']);
@@ -144,7 +144,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $household = $result['values'][$this->household];
 
     //asserts for type:Household
-    $this->assertEquals($household['contact_id'], $this->household, 'In line ' . __LINE__);
+    $this->assertEquals($household['contact_id'], $this->household);
     $this->assertEquals($household['household_name'], $this->householdParams['household_name']);
     $this->assertEquals($household['contact_type'], $this->householdParams['contact_type']);
     $this->assertNotContains('contact_sub_type', $household);
@@ -164,7 +164,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $indiviStudent = $result['values'][$this->indiviStudent];
 
     //asserts for type:Individual subtype:Student
-    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent, 'In line ' . __LINE__);
+    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent);
     $this->assertEquals($indiviStudent['first_name'], $this->indiviStudentParams['first_name']);
     $this->assertEquals($indiviStudent['contact_type'], $this->indiviStudentParams['contact_type']);
     $this->assertEquals(end($indiviStudent['contact_sub_type']), $this->indiviStudentParams['contact_sub_type']);
@@ -184,7 +184,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $orgSponsor = $result['values'][$this->orgSponsor];
 
     //asserts for type:Organization subtype:Sponsor
-    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor, 'In line ' . __LINE__);
+    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor);
     $this->assertEquals($orgSponsor['organization_name'], $this->orgSponsorParams['organization_name']);
     $this->assertEquals($orgSponsor['contact_type'], $this->orgSponsorParams['contact_type']);
     $this->assertEquals(end($orgSponsor['contact_sub_type']), $this->orgSponsorParams['contact_sub_type']);
@@ -212,7 +212,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $indiviStudent = $result['values'][$this->indiviStudent];
 
     //asserts for type:Individual subtype:Student
-    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent, 'In line ' . __LINE__);
+    $this->assertEquals($indiviStudent['contact_id'], $this->indiviStudent);
     $this->assertEquals($indiviStudent['first_name'], $this->indiviStudentParams['first_name']);
     $this->assertEquals($indiviStudent['contact_type'], $this->indiviStudentParams['contact_type']);
     $this->assertEquals(end($indiviStudent['contact_sub_type']), $this->indiviStudentParams['contact_sub_type']);
@@ -232,7 +232,7 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $orgSponsor = $result['values'][$this->orgSponsor];
 
     //asserts for type:Organization subtype:Sponsor
-    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor, 'In line ' . __LINE__);
+    $this->assertEquals($orgSponsor['contact_id'], $this->orgSponsor);
     $this->assertEquals($orgSponsor['organization_name'], $this->orgSponsorParams['organization_name']);
     $this->assertEquals($orgSponsor['contact_type'], $this->orgSponsorParams['contact_type']);
     $this->assertEquals(end($orgSponsor['contact_sub_type']), $this->orgSponsorParams['contact_sub_type']);
@@ -253,27 +253,27 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     // for invalid type
     $params = array('contact_type' => 'Invalid' . CRM_Core_DAO::VALUE_SEPARATOR . 'Invalid', 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for invalid subtype
     $params = array('contact_sub_type' => 'Invalid', 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for invalid contact type as well as subtype
     $params = array('contact_type' => 'Invalid' . CRM_Core_DAO::VALUE_SEPARATOR . 'Invalid', 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for valid type and invalid subtype
     $params = array('contact_type' => 'Individual' . CRM_Core_DAO::VALUE_SEPARATOR . 'Invalid', 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for invalid type and valid subtype
     $params = array('contact_type' => 'Invalid' . CRM_Core_DAO::VALUE_SEPARATOR . 'indivi_student', 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
   }
 
   /**
@@ -285,22 +285,22 @@ class CRM_Contact_BAO_ContactType_ContactSearchTest extends CiviUnitTestCase {
     $defaults = array();
     $params = array('contact_type' => 'Individual' . CRM_Core_DAO::VALUE_SEPARATOR . $this->sponsor, 'version' => 3);
     $result = civicrm_api('contact', 'get', $params);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for type:Orgaization subtype:Parent
     $params = array('contact_type' => 'Orgaization' . CRM_Core_DAO::VALUE_SEPARATOR . $this->parent, 'version' => 3);
     $result = civicrm_api('contact', 'get', $params, $defaults);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for type:Household subtype:Sponsor
     $params = array('contact_type' => 'Household' . CRM_Core_DAO::VALUE_SEPARATOR . $this->sponsor, 'version' => 3);
     $result = civicrm_api('contact', 'get', $params, $defaults);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
 
     // for type:Household subtype:Student
     $params = array('contact_type' => 'Household' . CRM_Core_DAO::VALUE_SEPARATOR . $this->student, 'version' => 3);
     $result = civicrm_api('contact', 'get', $params, $defaults);
-    $this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result['values']), TRUE);
   }
 
 }
index efc64f23e0838b2aeb2bc5f70728f4ce27aa918f..77a50ece781ceabac0192138f995fb19b8681dfb 100644 (file)
@@ -121,7 +121,7 @@ DELETE FROM civicrm_contact_type
     }
     $this->assertEquals($contact->first_name, 'Bill');
     $this->assertEquals($contact->contact_type, 'Individual');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $contact->contact_sub_type), $this->student, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $contact->contact_sub_type), $this->student);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
 
     //check for Type:Organization, Subtype:Sponsor
@@ -137,7 +137,7 @@ DELETE FROM civicrm_contact_type
     }
     $this->assertEquals($contact->organization_name, 'Conservation Corp');
     $this->assertEquals($contact->contact_type, 'Organization');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $contact->contact_sub_type), $this->sponsor, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $contact->contact_sub_type), $this->sponsor);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
   }
 
@@ -167,9 +167,9 @@ DELETE FROM civicrm_contact_type
     }
     catch (Exception$expected) {
     }
-    $this->assertEquals($updatedContact->id, $contact->id, 'In line ' . __LINE__);
+    $this->assertEquals($updatedContact->id, $contact->id);
     $this->assertEquals($updatedContact->contact_type, 'Individual');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->student, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->student);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
 
     $params = array(
@@ -192,9 +192,9 @@ DELETE FROM civicrm_contact_type
     }
     catch (Exception$expected) {
     }
-    $this->assertEquals($updatedContact->id, $contact->id, 'In line ' . __LINE__);
+    $this->assertEquals($updatedContact->id, $contact->id);
     $this->assertEquals($updatedContact->contact_type, 'Organization');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->sponsor, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->sponsor);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
   }
 
@@ -225,9 +225,9 @@ DELETE FROM civicrm_contact_type
     }
     catch (Exception$expected) {
     }
-    $this->assertEquals($updatedContact->id, $contact->id, 'In line ' . __LINE__);
+    $this->assertEquals($updatedContact->id, $contact->id);
     $this->assertEquals($updatedContact->contact_type, 'Individual');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->parent, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->parent);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
 
     $params = array(
@@ -252,9 +252,9 @@ DELETE FROM civicrm_contact_type
     catch (Exception$expected) {
     }
 
-    $this->assertEquals($updatedContact->id, $contact->id, 'In line ' . __LINE__);
+    $this->assertEquals($updatedContact->id, $contact->id);
     $this->assertEquals($updatedContact->contact_type, 'Organization');
-    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->team, 'In line ' . __LINE__);
+    $this->assertEquals(str_replace(CRM_Core_DAO::VALUE_SEPARATOR, '', $updatedContact->contact_sub_type), $this->team);
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
 
     $params = array(
@@ -280,7 +280,7 @@ DELETE FROM civicrm_contact_type
     catch (Exception$expected) {
     }
 
-    $this->assertEquals($updatedContact->id, $contact->id, 'In line ' . __LINE__);
+    $this->assertEquals($updatedContact->id, $contact->id);
     $this->assertEquals($updatedContact->contact_type, 'Individual');
     $this->assertEquals($updatedContact->contact_sub_type, 'null');
     CRM_Contact_BAO_Contact::deleteContact($contact->id);
index ed6d0261f41cdbc29a9737dca2a5c7b166dcf10c..fb5081a3a8120f02f742f77b9bb1bd0188717928 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     $contactTypes = array('Individual', 'Organization', 'Household');
     $result = CRM_Contact_BAO_ContactType::contactTypes('Individual');
     foreach ($contactTypes as $type) {
-      $this->assertEquals(in_array($type, $result), TRUE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($type, $result), TRUE);
     }
 
     // check for type:Individual
@@ -71,44 +71,44 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
     foreach ($result as $subtype) {
       $subTypeName = in_array($subtype, $this->subTypesIndividual);
       if (!empty($subTypeName)) {
-        $this->assertEquals($subTypeName, TRUE, 'In line ' . __LINE__);
+        $this->assertEquals($subTypeName, TRUE);
       }
-      $this->assertEquals(in_array($subtype, $this->subTypesOrganization), FALSE, 'In line ' . __LINE__);
-      $this->assertEquals(in_array($subtype, $this->subTypesHousehold), FALSE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $this->subTypesOrganization), FALSE);
+      $this->assertEquals(in_array($subtype, $this->subTypesHousehold), FALSE);
     }
 
     // check for type:Organization
     $result = CRM_Contact_BAO_ContactType::subTypes('Organization');
     foreach ($result as $subtype) {
-      $this->assertEquals(in_array($subtype, $this->subTypesIndividual), FALSE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $this->subTypesIndividual), FALSE);
       $subTypeName = in_array($subtype, $this->subTypesOrganization);
       if (!empty($subTypeName)) {
-        $this->assertEquals($subTypeName, TRUE, 'In line ' . __LINE__);
+        $this->assertEquals($subTypeName, TRUE);
       }
       $subTypeName = in_array($subTypeName, $this->subTypesHousehold);
       if (empty($subTypeName)) {
-        $this->assertEquals($subTypeName, FALSE, 'In line ' . __LINE__);
+        $this->assertEquals($subTypeName, FALSE);
       }
     }
 
     // check for type:Household
     $result = CRM_Contact_BAO_ContactType::subTypes('Household');
     foreach ($result as $subtype) {
-      $this->assertEquals(in_array($subtype, $this->subTypesIndividual), FALSE, 'In line ' . __LINE__);
-      $this->assertEquals(in_array($subtype, $this->subTypesOrganization), FALSE, 'In line ' . __LINE__);
-      $this->assertEquals(in_array($subtype, $this->subTypesHousehold), TRUE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $this->subTypesIndividual), FALSE);
+      $this->assertEquals(in_array($subtype, $this->subTypesOrganization), FALSE);
+      $this->assertEquals(in_array($subtype, $this->subTypesHousehold), TRUE);
     }
 
     // check for all conatct types
     $result = CRM_Contact_BAO_ContactType::subTypes();
     foreach ($this->subTypesIndividual as $subtype) {
-      $this->assertEquals(in_array($subtype, $result), TRUE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $result), TRUE);
     }
     foreach ($this->subTypesOrganization as $subtype) {
-      $this->assertEquals(in_array($subtype, $result), TRUE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $result), TRUE);
     }
     foreach ($this->subTypesHousehold as $subtype) {
-      $this->assertEquals(in_array($subtype, $result), TRUE, 'In line ' . __LINE__);
+      $this->assertEquals(in_array($subtype, $result), TRUE);
     }
   }
 
@@ -119,11 +119,11 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
 
     $params = 'invalid';
     $result = CRM_Contact_BAO_ContactType::subTypes($params);
-    $this->assertEquals(empty($result), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result), TRUE);
 
     $params = array('invalid');
     $result = CRM_Contact_BAO_ContactType::subTypes($params);
-    $this->assertEquals(empty($result), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals(empty($result), TRUE);
   }
 
   /**
@@ -173,7 +173,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
       'is_active' => 1,
     );
     $result = CRM_Contact_BAO_ContactType::add($params);
-    $this->assertEquals($result, NULL, 'In line ' . __LINE__);
+    $this->assertEquals($result, NULL);
   }
 
   public function testAddInvalid2() {
@@ -184,7 +184,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
       'is_active' => 1,
     );
     $result = CRM_Contact_BAO_ContactType::add($params);
-    $this->assertEquals($result, NULL, 'In line ' . __LINE__);
+    $this->assertEquals($result, NULL);
   }
 
   public function testAddInvalid3() {
@@ -215,8 +215,8 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
 
     $del = CRM_Contact_BAO_ContactType::del($subtype->id);
     $result = CRM_Contact_BAO_ContactType::subTypes();
-    $this->assertEquals($del, TRUE, 'In line ' . __LINE__);
-    $this->assertEquals(in_array($subtype->name, $result), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals($del, TRUE);
+    $this->assertEquals(in_array($subtype->name, $result), TRUE);
   }
 
   /**
@@ -225,7 +225,7 @@ class CRM_Contact_BAO_ContactType_ContactTypeTest extends CiviUnitTestCase {
   public function testDelInvalid() {
 
     $del = CRM_Contact_BAO_ContactType::del(NULL);
-    $this->assertEquals($del, FALSE, 'In line ' . __LINE__);
+    $this->assertEquals($del, FALSE);
   }
 
 }
index 68d004a7a252dc6b226dcf8c92bfc029ce76d3a6..c44c91fc98481714b746144e69c3cdf0409145d4 100644 (file)
@@ -171,8 +171,8 @@ DELETE FROM civicrm_contact_type
 
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($invalid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals($invalid, 1);
+    $this->assertEquals(empty($relationshipIds), TRUE);
     $this->relationshipTypeDelete($relType->id);
   }
 
@@ -198,8 +198,8 @@ DELETE FROM civicrm_contact_type
 
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($invalid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals($invalid, 1);
+    $this->assertEquals(empty($relationshipIds), TRUE);
     $this->relationshipTypeDelete($relType->id);
   }
 
@@ -223,8 +223,8 @@ DELETE FROM civicrm_contact_type
 
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($invalid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), TRUE, 'In line ' . __LINE__);
+    $this->assertEquals($invalid, 1);
+    $this->assertEquals(empty($relationshipIds), TRUE);
     $this->relationshipTypeDelete($relType->id);
   }
 
@@ -251,8 +251,8 @@ DELETE FROM civicrm_contact_type
     $ids = array('contact' => $this->individual);
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($valid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), FALSE, 'In line ' . __LINE__);
+    $this->assertEquals($valid, 1);
+    $this->assertEquals(empty($relationshipIds), FALSE);
     $this->relationshipTypeDelete($relType->id);
   }
 
@@ -279,8 +279,8 @@ DELETE FROM civicrm_contact_type
     $ids = array('contact' => $this->organization_sponsor);
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($valid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), FALSE, 'In line ' . __LINE__);
+    $this->assertEquals($valid, 1);
+    $this->assertEquals(empty($relationshipIds), FALSE);
     $this->relationshipTypeDelete($relType->id);
   }
 
@@ -304,8 +304,8 @@ DELETE FROM civicrm_contact_type
     $ids = array('contact' => $this->indivi_student);
     list($valid, $invalid, $duplicate, $saved, $relationshipIds) = CRM_Contact_BAO_Relationship::legacyCreateMultiple($params, $ids);
 
-    $this->assertEquals($valid, 1, 'In line ' . __LINE__);
-    $this->assertEquals(empty($relationshipIds), FALSE, 'In line ' . __LINE__);
+    $this->assertEquals($valid, 1);
+    $this->assertEquals(empty($relationshipIds), FALSE);
     $this->relationshipTypeDelete($relType->id);
   }
 
index f9ff18a887e9c505e917d554e70efd0989c72a2b..53303312e714e94264af52a6bf813dd13cf97ae2 100644 (file)
@@ -62,7 +62,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase {
 
     sort($contacts, SORT_NUMERIC);
 
-    $this->assertEquals($ids, $contacts, 'In line ' . __LINE__);
+    $this->assertEquals($ids, $contacts);
   }
 
   /**
index 5a41e8b9a92d3df00067b0079621328b8fb4c2bb..c4855c70607a5607b1d0e060b7d72215084da39b 100644 (file)
@@ -149,7 +149,7 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase {
       );
     }
     asort($all);
-    $this->assertEquals($full, $all, 'In line ' . __LINE__);
+    $this->assertEquals($full, $all);
   }
 
   /**
@@ -182,7 +182,7 @@ class CRM_Contact_Form_Search_Custom_GroupTest extends CiviUnitTestCase {
     }
     $contacts = array_keys($contacts);
     sort($contacts, SORT_NUMERIC);
-    $this->assertEquals($ids, $contacts, 'In line ' . __LINE__);
+    $this->assertEquals($ids, $contacts);
   }
 
   /**
index 6cb52548e53129134fc09792a7f39c8b5c101389..5d9514464a3e1483a43ace528b472871a01c1504 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Event_BAO_ParticipantTest extends CiviUnitTestCase {
     $params = $values = $ids = array();
     $participantId = Participant::create($this->_contactId, $this->_eventId);
     $fetchParticipant = CRM_Event_BAO_Participant::getValues($params, $values, $ids);
-    $this->assertNull($fetchParticipant, 'In line ' . __LINE__);
+    $this->assertNull($fetchParticipant);
 
     Contact::delete($this->_contactId);
     Event::delete($this->_eventId);
index fa3e49d128c4e6d2fd9ff5fabc16793e2385c5da..64079157d6d69610c490286fef83c3afd5a316ea 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Mailing_BAO_QueryTest extends CiviUnitTestCase {
 
     sort($contacts, SORT_NUMERIC);
 
-    $this->assertEquals($ids, $contacts, 'In line ' . __LINE__);
+    $this->assertEquals($ids, $contacts);
   }
 
 }
index f38e4e80cdee6b03b20e6c25e83bdd0df2c0aa20..5632513b1456dc2b75b6a0a3cd98d5d925f98ddd 100644 (file)
@@ -307,7 +307,7 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase {
     $rc = $obj->formRule($params, $files, $obj);
 
     //  Should have found New membership status
-    $this->assertTrue($rc, 'In line ' . __LINE__);
+    $this->assertTrue($rc);
   }
 
   /**
@@ -369,7 +369,7 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase {
     $rc = $obj->formRule($params, $files, $obj);
 
     //  Should have found Grace membership status
-    $this->assertTrue($rc, 'In line ' . __LINE__);
+    $this->assertTrue($rc);
   }
 
   /**
@@ -390,7 +390,7 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase {
     $rc = $obj->formRule($params, $files, $obj);
 
     //  Should have found Expired membership status
-    $this->assertTrue($rc, 'In line ' . __LINE__);
+    $this->assertTrue($rc);
   }
 
   /**
index 6fcf3ade876593a24feb7ff1e39a87b816951a63..957a80888b697e5fd6e05a9988e26f9355bb6b0b 100644 (file)
@@ -326,7 +326,7 @@ class api_v3_AddressTest extends CiviUnitTestCase {
     $params = $this->_params;
     unset($params['is_primary']);
     $address1 = $this->callAPISuccess('address', 'create', $params);
-    $this->assertApiSuccess($address1, 'In line ' . __LINE__);
+    $this->assertApiSuccess($address1);
     //now we check & make sure it has been set to primary
     $check = $this->callAPISuccess('address', 'getcount', array(
       'is_primary' => 1,
index dbfc46431500f36ebaac86b3d997fa168df53605..6d7da7c0ccff56a5e70913f1508d510fdc9c7f37 100644 (file)
@@ -114,7 +114,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
 
     // Check result.
     $result = $this->callAPISuccess('CaseType', 'get', array('id' => $id));
-    $this->assertEquals($result['values'][$id]['id'], $id, 'in line ' . __LINE__);
+    $this->assertEquals($result['values'][$id]['id'], $id);
     $this->assertEquals($result['values'][$id]['title'], $params['title']);
   }
 
@@ -194,7 +194,7 @@ class api_v3_CaseTypeTest extends CiviCaseTestCase {
 
     // Check result
     $result = $this->callAPISuccess('CaseType', 'get', array('id' => $id));
-    $this->assertEquals($result['values'][$id]['id'], $id, 'in line ' . __LINE__);
+    $this->assertEquals($result['values'][$id]['id'], $id);
     $this->assertEquals($result['values'][$id]['title'], $params['title']);
     $this->assertEquals($result['values'][$id]['definition'], $params['definition']);
 
index f161d6535b8708cb0dc9ecdbebe08dc8263e4b8f..5975b27a17c94fa4bf66a74773c6723a537b024a 100644 (file)
@@ -386,7 +386,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument('Contact', 'create', $params, __FUNCTION__, __FILE__);
     $customFldId = $result['values'][$result['id']]['api.CustomField.create']['id'];
     $this->assertNotNull($result['id']);
-    $this->assertNotNull($customFldId, 'in line ' . __LINE__);
+    $this->assertNotNull($customFldId);
 
     $params = array(
       'id' => $result['id'],
@@ -397,7 +397,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $result = $this->callAPIAndDocument('Contact', 'create', $params, __FUNCTION__, __FILE__);
     $this->assertNotNull($result['id']);
     $customFldDate = date("YmdHis", strtotime($result['values'][$result['id']]['api.CustomValue.get']['values'][0]['latest']));
-    $this->assertNotNull($customFldDate, 'in line ' . __LINE__);
+    $this->assertNotNull($customFldDate);
     $this->assertEquals($dateTime, $customFldDate);
     $customValueId = $result['values'][$result['id']]['api.CustomValue.get']['values'][0]['id'];
     $dateTime = date('Ymd');
@@ -421,7 +421,7 @@ class api_v3_ContactTest extends CiviUnitTestCase {
     $this->assertNotNull($result['id']);
     $customFldDate = date("Ymd", strtotime($result['values'][$result['id']]['api.CustomValue.get']['values'][0]['latest']));
     $customFldTime = date("His", strtotime($result['values'][$result['id']]['api.CustomValue.get']['values'][0]['latest']));
-    $this->assertNotNull($customFldDate, 'in line ' . __LINE__);
+    $this->assertNotNull($customFldDate);
     $this->assertEquals($dateTime, $customFldDate);
     $this->assertEquals(000000, $customFldTime);
     $result = $this->callAPIAndDocument('Contact', 'create', $params, __FUNCTION__, __FILE__);
index 4f1fac66f62eb0b10385cf1e56f26412a8bf667d..3b5809a23b3fb4fb89755dfa445efe8438e3623e 100644 (file)
@@ -103,11 +103,11 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     );
     $softcontribution = $this->callAPIAndDocument('contribution_soft', 'get', $params, __FUNCTION__, __FILE__);
     $this->assertEquals(1, $softcontribution['count']);
-    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['contribution_id'], $this->_contributionId, 'In line ' . __LINE__);
-    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['contact_id'], $this->_softIndividual1Id, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['contribution_id'], $this->_contributionId);
+    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['contact_id'], $this->_softIndividual1Id);
     $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['amount'], '10.00');
     $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['currency'], 'USD');
-    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['soft_credit_type_id'], 4, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$this->_softcontribution['id']]['soft_credit_type_id'], 4);
 
     //create a second soft contribution on the same hard contribution - we are testing that 'id' gets the right soft contribution id (not the contribution id)
     $p['contact_id'] = $this->_softIndividual2Id;
@@ -209,11 +209,11 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     );
 
     $softcontribution = $this->callAPIAndDocument('contribution_soft', 'create', $params, __FUNCTION__, __FILE__);
-    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['contribution_id'], $this->_contributionId, 'In line ' . __LINE__);
-    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['contact_id'], $this->_softIndividual1Id, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['contribution_id'], $this->_contributionId);
+    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['contact_id'], $this->_softIndividual1Id);
     $this->assertEquals($softcontribution['values'][$softcontribution['id']]['amount'], '10.00');
     $this->assertEquals($softcontribution['values'][$softcontribution['id']]['currency'], 'USD');
-    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['soft_credit_type_id'], 5, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$softcontribution['id']]['soft_credit_type_id'], 5);
   }
 
   /**
@@ -238,7 +238,7 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     );
     $original = $this->callAPISuccess('contribution_soft', 'get', $old_params);
     //Make sure it came back
-    $this->assertEquals($original['id'], $softcontributionID, 'In line ' . __LINE__);
+    $this->assertEquals($original['id'], $softcontributionID);
     //set up list of old params, verify
     $old_contribution_id = $original['values'][$softcontributionID]['contribution_id'];
     $old_contact_id = $original['values'][$softcontributionID]['contact_id'];
@@ -247,11 +247,11 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     $old_soft_credit_type_id = $original['values'][$softcontributionID]['soft_credit_type_id'];
 
     //check against original values
-    $this->assertEquals($old_contribution_id, $this->_contributionId, 'In line ' . __LINE__);
-    $this->assertEquals($old_contact_id, $this->_softIndividual1Id, 'In line ' . __LINE__);
-    $this->assertEquals($old_amount, 10.00, 'In line ' . __LINE__);
+    $this->assertEquals($old_contribution_id, $this->_contributionId);
+    $this->assertEquals($old_contact_id, $this->_softIndividual1Id);
+    $this->assertEquals($old_amount, 10.00);
     $this->assertEquals($old_currency, 'USD');
-    $this->assertEquals($old_soft_credit_type_id, 6, 'In line ' . __LINE__);
+    $this->assertEquals($old_soft_credit_type_id, 6);
     $params = array(
       'id' => $softcontributionID,
       'contribution_id' => $this->_contributionId,
@@ -268,11 +268,11 @@ class api_v3_ContributionSoftTest extends CiviUnitTestCase {
     );
     $softcontribution = $this->callAPISuccess('contribution_soft', 'get', $new_params);
     //check against original values
-    $this->assertEquals($softcontribution['values'][$softcontributionID]['contribution_id'], $this->_contributionId, 'In line ' . __LINE__);
-    $this->assertEquals($softcontribution['values'][$softcontributionID]['contact_id'], $this->_softIndividual1Id, 'In line ' . __LINE__);
-    $this->assertEquals($softcontribution['values'][$softcontributionID]['amount'], 7.00, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$softcontributionID]['contribution_id'], $this->_contributionId);
+    $this->assertEquals($softcontribution['values'][$softcontributionID]['contact_id'], $this->_softIndividual1Id);
+    $this->assertEquals($softcontribution['values'][$softcontributionID]['amount'], 7.00);
     $this->assertEquals($softcontribution['values'][$softcontributionID]['currency'], 'CAD');
-    $this->assertEquals($softcontribution['values'][$softcontributionID]['soft_credit_type_id'], 7, 'In line ' . __LINE__);
+    $this->assertEquals($softcontribution['values'][$softcontributionID]['soft_credit_type_id'], 7);
 
     $params = array(
       'id' => $softcontributionID,
index aae9311bea28bcd35857274c4e694d1ee723dd06..c38a06262d844230c3385e248eeaa4b50373c4a7 100644 (file)
@@ -414,7 +414,7 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase {
     );
     $result = $this->callAPIAndDocument('custom_field', 'delete', $params, __FUNCTION__, __FILE__);
 
-    $this->assertAPISuccess($result, 'in line ' . __LINE__);
+    $this->assertAPISuccess($result);
   }
 
   /**
index 4816f1157ddea0db04051b1dd44a53e09456c2aa..4a0d8777300b854367d2b869bf425d995a606af2 100644 (file)
@@ -95,7 +95,7 @@ class api_v3_CustomGroupTest extends CiviUnitTestCase {
 
     $customGroup = $this->callAPIFailure('custom_group', 'create', $params);
     $this->assertEquals($customGroup['error_message'], 'Mandatory key(s) missing from params array: extends');
-    $this->assertAPIFailure($customGroup, 'In line ' . __LINE__);
+    $this->assertAPIFailure($customGroup);
   }
 
   /**
@@ -355,7 +355,7 @@ class api_v3_CustomGroupTest extends CiviUnitTestCase {
       'id' => $customGroup['id'],
     );
     $result = $this->callAPIAndDocument('custom_group', 'delete', $params, __FUNCTION__, __FILE__);
-    $this->assertAPISuccess($result, 'In line ' . __LINE__);
+    $this->assertAPISuccess($result);
   }
 
   /**
index 735be1bb43f9f2b72a05a87fc0a1b5873572c629..6bc7c12a4a67e25ba76327495d38be3d9936d336 100644 (file)
@@ -237,7 +237,7 @@ class api_v3_EmailTest extends CiviUnitTestCase {
 
       'contact_id' => $this->_contactID,
     ));
-    $this->assertAPISuccess($get, 'In line ' . __LINE__);
+    $this->assertAPISuccess($get);
     $this->assertEquals(0, $get['count'], 'Incorrect email count at ' . __LINE__);
   }
 
@@ -247,7 +247,7 @@ class api_v3_EmailTest extends CiviUnitTestCase {
 
       'contact_id' => $this->_contactID,
     ));
-    $this->assertAPISuccess($get, 'In line ' . __LINE__);
+    $this->assertAPISuccess($get);
     $this->assertEquals(0, $get['count'], 'email already exists ' . __LINE__);
     $description = "Demonstrates use of Replace in a nested API call.";
     $subfile = "NestedReplaceEmail";
index a071468e4353462af9110279915c2d701fa2a24a..b672d56c3479f8eead4568e063402b0e1dc51fc6 100644 (file)
@@ -363,7 +363,7 @@ class api_v3_EventTest extends CiviUnitTestCase {
     $this->_params[0]['event_title'] = $this->_params[0]['title'];
     unset($this->_params[0]['title']);
     $result = $this->callAPISuccess('Event', 'Create', $this->_params[0]);
-    $this->assertAPISuccess($result, 'In line ' . __LINE__);
+    $this->assertAPISuccess($result);
     $this->assertArrayHasKey('id', $result['values'][$result['id']]);
     $result = $this->callAPISuccess($this->_entity, 'Get', array('id' => $result['id']));
     $this->callAPISuccess($this->_entity, 'Delete', array('id' => $result['id']));
@@ -409,7 +409,7 @@ class api_v3_EventTest extends CiviUnitTestCase {
       'event_id' => $this->_eventIds[0],
     );
     $result = $this->callAPISuccess('Event', 'Delete', $params);
-    $this->assertAPISuccess($result, 'in line ' . __LINE__);
+    $this->assertAPISuccess($result);
   }
 
   /**
index f5e826f1a3c6c26c0e71feb349febb7c7b6d3a16..e836e188a2a5abf1a82af056e46ad870a2aaf9a5 100644 (file)
@@ -133,14 +133,14 @@ class api_v3_GrantTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess($this->_entity, 'create', $this->params);
     $this->ids['grant'][0] = $result['id'];
     $result = $this->callAPIAndDocument($this->_entity, 'get', array('rationale' => 'Just Because'), __FUNCTION__, __FILE__);
-    $this->assertAPISuccess($result, 'In line ' . __LINE__);
+    $this->assertAPISuccess($result);
     $this->assertEquals(1, $result['count']);
   }
 
   public function testDeleteGrant() {
     $result = $this->callAPISuccess($this->_entity, 'create', $this->params);
     $result = $this->callAPIAndDocument($this->_entity, 'delete', array('id' => $result['id']), __FUNCTION__, __FILE__);
-    $this->assertAPISuccess($result, 'In line ' . __LINE__);
+    $this->assertAPISuccess($result);
     $checkDeleted = $this->callAPISuccess($this->_entity, 'get', array());
     $this->assertEquals(0, $checkDeleted['count']);
   }
index 12cae832f9f161b7a0d30a3c8087e42cf7320624..ce60eef3179b17aa6f9b910032583ed9c62c44b3 100644 (file)
@@ -66,8 +66,8 @@ class api_v3_MembershipTypeTest extends CiviUnitTestCase {
     );
     $membershiptype = $this->callAPIAndDocument('membership_type', 'get', $params, __FUNCTION__, __FILE__);
     $this->assertEquals($membershiptype['values'][$id]['name'], 'General');
-    $this->assertEquals($membershiptype['values'][$id]['member_of_contact_id'], $this->_contactID, 'In line ' . __LINE__);
-    $this->assertEquals($membershiptype['values'][$id]['financial_type_id'], 1, 'In line ' . __LINE__);
+    $this->assertEquals($membershiptype['values'][$id]['member_of_contact_id'], $this->_contactID);
+    $this->assertEquals($membershiptype['values'][$id]['financial_type_id'], 1);
     $this->assertEquals($membershiptype['values'][$id]['duration_unit'], 'year');
     $this->assertEquals($membershiptype['values'][$id]['duration_interval'], '1');
     $this->assertEquals($membershiptype['values'][$id]['period_type'], 'rolling');
index 361c927535524e860c222732f0876a2e284d13d6..8a1fc0301abdc67492fd017aacab037836d772b3 100644 (file)
@@ -155,10 +155,10 @@ class api_v3_NoteTest extends CiviUnitTestCase {
       'sequential' => 1,
     );
     $result = $this->callAPISuccess('Note', 'Create', $params);
-    $this->assertAPISuccess($result, 'in line ' . __LINE__);
+    $this->assertAPISuccess($result);
     $this->assertEquals($result['values'][0]['note'], "Hello!!! ' testing Note");
     $this->assertEquals($result['values'][0]['subject'], "With a '");
-    $this->assertArrayHasKey('id', $result, 'in line ' . __LINE__);
+    $this->assertArrayHasKey('id', $result);
 
     //CleanUP
     $note = array(
@@ -219,8 +219,8 @@ class api_v3_NoteTest extends CiviUnitTestCase {
     // Update Note.
     $this->callAPISuccess('note', 'create', $params);
     $note = $this->callAPISuccess('Note', 'Get', array());
-    $this->assertEquals($note['id'], $this->_noteID, 'in line ' . __LINE__);
-    $this->assertEquals($note['values'][$this->_noteID]['entity_id'], $this->_contactID, 'in line ' . __LINE__);
+    $this->assertEquals($note['id'], $this->_noteID);
+    $this->assertEquals($note['values'][$this->_noteID]['entity_id'], $this->_contactID);
     $this->assertEquals($note['values'][$this->_noteID]['entity_table'], 'civicrm_contact');
     $this->assertEquals('Hello World', $note['values'][$this->_noteID]['subject']);
     $this->assertEquals('Note1', $note['values'][$this->_noteID]['note']);
index a0fb7722d33624347937d215636427a37eed7008..8f7c726288aba81410340198cd4a479dd15b04f2 100644 (file)
@@ -341,7 +341,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
     );
     $participant = $this->callAPISuccess('participant', 'get', $params);
 
-    $this->assertEquals($participant['count'], 2, 'in line ' . __LINE__);
+    $this->assertEquals($participant['count'], 2);
   }
 
   ///////////////// civicrm_participant_create methods
index 001155abdf9556c93cceebe496aeab448f7a12fc..96790320da217334e03e36e8115c4ef0efcd6039 100644 (file)
@@ -106,9 +106,9 @@ class api_v3_PriceFieldTest extends CiviUnitTestCase {
     $createResult = $this->callAPISuccess($this->_entity, 'create', $this->_params);
     $deleteParams = array('id' => $createResult['id']);
     $deleteResult = $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__);
-    $this->assertAPISuccess($deleteResult, 'In line ' . __LINE__);
+    $this->assertAPISuccess($deleteResult);
     $endCount = $this->callAPISuccess($this->_entity, 'getcount', array());
-    $this->assertEquals($startCount, $endCount, 'In line ' . __LINE__);
+    $this->assertEquals($startCount, $endCount);
   }
 
   public function testGetFieldsPriceField() {
index 0bae4231a6e6e91cc281372cacd9f0339ee449c6..0a1e16f0e68833a8803490b0b034d74e01d76a02 100644 (file)
@@ -137,7 +137,7 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
 
   public function testCreatePriceFieldValue() {
     $result = $this->callAPIAndDocument($this->_entity, 'create', $this->_params, __FUNCTION__, __FILE__);
-    $this->assertAPISuccess($result, 'In line ' . __LINE__);
+    $this->assertAPISuccess($result);
     $this->assertEquals(1, $result['count']);
     $this->assertNotNull($result['values'][$result['id']]['id']);
     $this->getAndCheck($this->_params, $result['id'], $this->_entity);
@@ -162,7 +162,7 @@ class api_v3_PriceFieldValueTest extends CiviUnitTestCase {
     $deleteResult = $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__);
 
     $endCount = $this->callAPISuccess($this->_entity, 'getcount', array());
-    $this->assertEquals($startCount, $endCount, 'In line ' . __LINE__);
+    $this->assertEquals($startCount, $endCount);
   }
 
   public function testGetFieldsPriceFieldValue() {
index 92567661eb4f7062587ef022c80e16c81582c82b..077c713c7810d2cae4e0750165cefcc4dc509935 100644 (file)
@@ -255,14 +255,14 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
 
     $contribution = $this->callAPIAndDocument('contribution', 'create', $params, __FUNCTION__, __FILE__);
     $this->_ids['contributionId'] = $contribution['id'];
-    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId);
+    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00);
+    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID);
+    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345);
+    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890);
     $this->assertEquals($contribution['values'][$contribution['id']]['source'], 'SSF');
-    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 1, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 1);
     $this->_checkFinancialRecords($contribution, 'online');
   }
 
@@ -324,14 +324,14 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
       'contribution_status_id' => 2,
     );
     $contribution = $this->callAPIAndDocument('contribution', 'create', $params, __FUNCTION__, __FILE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId);
+    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00);
+    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID);
+    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345);
+    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890);
     $this->assertEquals($contribution['values'][$contribution['id']]['source'], 'SSF');
-    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 2, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 2);
     $this->_checkFinancialRecords($contribution, 'payLater');
   }
 
@@ -350,14 +350,14 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase {
     );
 
     $contribution = $this->callAPIAndDocument('contribution', 'create', $params, __FUNCTION__, __FILE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contact_id'], $this->_individualId);
+    $this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 120.00);
+    $this->assertEquals($contribution['values'][$contribution['id']]['financial_type_id'], $this->financialtypeID);
+    $this->assertEquals($contribution['values'][$contribution['id']]['trxn_id'], 12345);
+    $this->assertEquals($contribution['values'][$contribution['id']]['invoice_id'], 67890);
     $this->assertEquals($contribution['values'][$contribution['id']]['source'], 'SSF');
-    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20, 'In line ' . __LINE__);
-    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 2, 'In line ' . __LINE__);
+    $this->assertEquals($contribution['values'][$contribution['id']]['tax_amount'], 20);
+    $this->assertEquals($contribution['values'][$contribution['id']]['contribution_status_id'], 2);
     $this->_checkFinancialRecords($contribution, 'pending');
   }
 
index d4a446f1cbaee4229a8d4a73afe1b87216d18125..3ad1ddf706346d84bb62c135d5528d74fe1f58a3 100644 (file)
@@ -95,7 +95,7 @@ class api_v3_UFJoinTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess('uf_join', 'get', $searchParams);
 
     foreach ($result['values'] as $key => $value) {
-      $this->assertEquals($value['uf_group_id'], $this->_ufGroupId, 'In line ' . __LINE__);
+      $this->assertEquals($value['uf_group_id'], $this->_ufGroupId);
     }
   }