Fix contribution tests that failed in last run
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 11 Oct 2016 20:25:30 +0000 (07:25 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 11 Oct 2016 20:25:30 +0000 (07:25 +1100)
tests/phpunit/api/v3/ContributionTest.php

index 5d92cff0a495b4a61cc51094b6f073c7ccf668cb..00f29808cbcce4b31986de8620293ec62e0bf91d 100644 (file)
@@ -2091,6 +2091,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     )));
     unset($expectedLineItem['id'], $expectedLineItem['entity_id']);
     unset($lineItem2['values'][0]['id'], $lineItem2['values'][0]['entity_id']);
+    $expectedLineItem['contribution_type_id'] = $lineItem2['values'][0]['contribution_type_id'];
     $this->assertEquals($expectedLineItem, $lineItem2['values'][0]);
   }
 
@@ -2141,6 +2142,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase {
     )));
     unset($expectedLineItem['id'], $expectedLineItem['entity_id']);
     unset($lineItem2['values'][0]['id'], $lineItem2['values'][0]['entity_id']);
+    $expectedLineItem['contribution_type_id'] = $lineItem2['values'][0]['contribution_type_id'];
     $this->assertEquals($expectedLineItem, $lineItem2['values'][0]);
   }