From 7aed59c0bff341ba3564519adf942d2d5a172363 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 3 Jun 2014 22:52:58 +1200 Subject: [PATCH] minor preparatory tidy ups --- tests/phpunit/api/v3/PriceSetTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/api/v3/PriceSetTest.php b/tests/phpunit/api/v3/PriceSetTest.php index 99e7a1315a..e56f68dcbe 100644 --- a/tests/phpunit/api/v3/PriceSetTest.php +++ b/tests/phpunit/api/v3/PriceSetTest.php @@ -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() { -- 2.25.1