Skip to content

Commit

Permalink
Better test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Oct 11, 2016
1 parent 9e6c4b1 commit 257ab38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/phpunit/api/v3/ContributionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2083,15 +2083,14 @@ public function testRepeatTransactionPassedInFinancialType() {
'line_total' => '100.00',
'unit_price' => '100.00',
'financial_type_id' => 2,
'contribution_type_id' => 2,
)
);

$lineItem2 = $this->callAPISuccess('line_item', 'get', array_merge($lineItemParams, array(
'entity_id' => $originalContribution['id'] + 1,
)));
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]);
}

Expand Down Expand Up @@ -2134,6 +2133,7 @@ public function testRepeatTransactionUpdatedFinancialType() {
'line_total' => '100.00',
'unit_price' => '100.00',
'financial_type_id' => 2,
'contribution_type_id' => 2,
)
);

Expand All @@ -2142,7 +2142,6 @@ public function testRepeatTransactionUpdatedFinancialType() {
)));
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]);
}

Expand Down

0 comments on commit 257ab38

Please sign in to comment.