From 442bd3c14315dfb1a9dd8790a12a3595c8680311 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 26 Jul 2013 20:11:20 +1200 Subject: [PATCH] CRM-13072 minor tweaks line item test --- tests/phpunit/api/v3/LineItemTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/LineItemTest.php b/tests/phpunit/api/v3/LineItemTest.php index 30dc97934d..be13ab66fa 100644 --- a/tests/phpunit/api/v3/LineItemTest.php +++ b/tests/phpunit/api/v3/LineItemTest.php @@ -104,14 +104,12 @@ class api_v3_LineItemTest extends CiviUnitTestCase { $getResult = $this->callAPISuccess($this->_entity, 'get', $getParams); $deleteParams = array('id' => $getResult['id']); $deleteResult = $this->callAPIAndDocument($this->_entity, 'delete', $deleteParams, __FUNCTION__, __FILE__); - $this->assertAPISuccess($deleteResult, 'In line ' . __LINE__); - $checkDeleted = $this->callAPISuccess($this->_entity, 'get', array( )); + $checkDeleted = $this->callAPISuccess($this->_entity, 'get', array()); $this->assertEquals(0, $checkDeleted['count'], 'In line ' . __LINE__); } public function testGetFieldsLineItem() { $result = $this->callAPISuccess($this->_entity, 'getfields', array('action' => 'create', 'action' => 'create')); - $this->assertAPISuccess($result, 'In line ' . __LINE__); $this->assertEquals(1, $result['values']['entity_id']['api.required']); } -- 2.25.1