remove more inline messages
[civicrm-core.git] / tests / phpunit / api / v3 / ParticipantTest.php
index 370c3bf27dce27605d5ff8948d5449c7c63ed814..8f7c726288aba81410340198cd4a479dd15b04f2 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -193,7 +193,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
         'contact_id' => $this->_contactID,
       ));
 
-    $description = "use nested get to get an event";
+    $description = "Demonstrates use of nested get to fetch event data with participant records.";
     $subfile = "NestedEventGet";
     $params = array(
       'id' => $this->_participantID,
@@ -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
@@ -574,7 +574,7 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
   public function testUpdateWrongParamsType() {
     $params = 'a string';
     $result = $this->callAPIFailure('participant', 'create', $params);
-    $this->assertEquals('Input variable `params` is not an array', $result['error_message'], 'In line ' . __LINE__);
+    $this->assertEquals('Input variable `params` is not an array', $result['error_message']);
   }
 
   /**
@@ -688,12 +688,12 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
    * Delete with a get - a 'criteria delete'
    */
   public function testNestedDelete() {
-    $description = "Criteria delete by nesting a GET & a DELETE";
+    $description = "Criteria delete by nesting a GET & a DELETE.";
     $subfile = "NestedDelete";
     $participants = $this->callAPISuccess('Participant', 'Get', array());
     $this->assertEquals($participants['count'], 3);
     $params = array('contact_id' => $this->_contactID2, 'api.participant.delete' => 1);
-    $participants = $this->callAPIAndDocument('Participant', 'Get', $params, __FUNCTION__, __FILE__, $description, $subfile, 'Get');
+    $participants = $this->callAPIAndDocument('Participant', 'Get', $params, __FUNCTION__, __FILE__, $description, $subfile);
     $check = $this->callAPISuccess('participant', 'getcount', array());
     $this->assertEquals(1, $check, "only one participant should be left. line " . __LINE__);
   }
@@ -702,8 +702,8 @@ class api_v3_ParticipantTest extends CiviUnitTestCase {
    * Test creation of a participant with an associated contribution.
    */
   public function testCreateParticipantWithPayment() {
-    $description = "single function to create contact w partipation & contribution. Note that in the
-      case of 'contribution' the 'create' is implied (api.contribution.create)";
+    $description = "Single function to create contact with partipation & contribution.
+      Note that in the case of 'contribution' the 'create' is implied (api.contribution.create)";
     $subfile = "CreateParticipantPayment";
     $params = array(
       'contact_type' => 'Individual',