test failure fix2
[civicrm-core.git] / tests / phpunit / api / v3 / LineItemTest.php
index 520659316ed1197fc6a2a1c65ae0aa2b7fc1a72d..a32a05db7cbc2910304e7ea0e9050b4748173368 100644 (file)
@@ -37,7 +37,7 @@ class api_v3_LineItemTest extends CiviUnitTestCase {
   protected $id = 0;
   protected $contactIds = array();
   protected $_entity = 'line_item';
-  protected $contribution_result = null;
+  protected $contribution_result = NULL;
 
   public $DBResetRequired = TRUE;
   protected $_financialTypeId = 1;
@@ -57,7 +57,7 @@ class api_v3_LineItemTest extends CiviUnitTestCase {
       'source' => 'SSF',
       'contribution_status_id' => 1,
     );
-    $contribution = $this->callAPISuccess('contribution','create', $contributionParams);
+    $contribution = $this->callAPISuccess('contribution', 'create', $contributionParams);
     $this->params = array(
       'price_field_value_id' => 1,
       'price_field_id' => 1,
@@ -85,7 +85,8 @@ class api_v3_LineItemTest extends CiviUnitTestCase {
   }
 
   public function testDeleteLineItem() {
-    $getParams = array(        'entity_table' => 'civicrm_contribution',
+    $getParams = array(
+      'entity_table' => 'civicrm_contribution',
     );
     $getResult = $this->callAPISuccess($this->_entity, 'get', $getParams);
     $deleteParams = array('id' => $getResult['id']);
@@ -95,7 +96,7 @@ class api_v3_LineItemTest extends CiviUnitTestCase {
   }
 
   public function testGetFieldsLineItem() {
-    $result = $this->callAPISuccess($this->_entity, 'getfields', array('action' => 'create',));
+    $result = $this->callAPISuccess($this->_entity, 'getfields', array('action' => 'create'));
     $this->assertEquals(1, $result['values']['entity_id']['api.required']);
   }