CRM-13072 minor tweaks line item test
authoreileen <eileen@fuzion.co.nz>
Fri, 26 Jul 2013 08:11:20 +0000 (20:11 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 26 Jul 2013 08:11:20 +0000 (20:11 +1200)
tests/phpunit/api/v3/LineItemTest.php

index 30dc97934dfca6cd54d1d80e96aff1d4db0d4db4..be13ab66fa21919b1b47781413ec1679092e826e 100644 (file)
@@ -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']);
   }