minor preparatory tidy ups
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 10:52:58 +0000 (22:52 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Jun 2014 10:53:34 +0000 (22:53 +1200)
tests/phpunit/api/v3/PriceSetTest.php

index 99e7a1315a67a547069bbbfcee180b46c3a00821..e56f68dcbe1916519d39cb3508991c6e9054a43e 100644 (file)
@@ -60,8 +60,8 @@ class api_v3_PriceSetTest extends CiviUnitTestCase {
 
   public function testCreatePriceSet() {
     $result = $this->callAPIAndDocument($this->_entity, 'create', $this->_params, __FUNCTION__, __FILE__);
-    $this->assertEquals(1, $result['count'], 'In line ' . __LINE__);
-    $this->assertNotNull($result['values'][$result['id']]['id'], 'In line ' . __LINE__);
+    $this->assertEquals(1, $result['count']);
+    $this->assertNotNull($result['values'][$result['id']]['id']);
     $this->getAndCheck($this->_params, $result['id'], $this->_entity);
   }
 
@@ -70,7 +70,7 @@ class api_v3_PriceSetTest extends CiviUnitTestCase {
       'name' => 'default_contribution_amount',
     );
     $getResult = $this->callAPIAndDocument($this->_entity, 'get', $getParams, __FUNCTION__, __FILE__);
-    $this->assertEquals(1, $getResult['count'], 'In line ' . __LINE__);
+    $this->assertEquals(1, $getResult['count']);
   }
 
   public function testEventPriceSet() {
@@ -93,16 +93,16 @@ class api_v3_PriceSetTest extends CiviUnitTestCase {
     $result = $this->callAPISuccess($this->_entity, 'get', array(
       'id' => $createResult['id'],
     ));
-    $this->assertEquals(array('civicrm_event' => array($event['id'])), $result['values'][$createResult['id']]['entity'], 'In line ' . __LINE__);
+    $this->assertEquals(array('civicrm_event' => array($event['id'])), $result['values'][$createResult['id']]['entity']);
   }
 
   public function testDeletePriceSet() {
     $startCount = $this->callAPISuccess($this->_entity, 'getcount', array());
     $createResult = $this->callAPISuccess($this->_entity, 'create', $this->_params);
     $deleteParams = array('id' => $createResult['id']);
-    $deleteResult = $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__);
+    $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 testGetFieldsPriceSet() {