From 0f62ef90982451b80fb0e276beba9e122ca064c4 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 28 Aug 2019 20:35:29 +1200 Subject: [PATCH] Add check to ensure only 3 rows --- tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php b/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php index 21113b149f..622d37612a 100644 --- a/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php +++ b/tests/phpunit/CRM/Event/BAO/ChangeFeeSelectionTest.php @@ -547,6 +547,7 @@ class CRM_Event_BAO_ChangeFeeSelectionTest extends CiviUnitTestCase { $lineItem = CRM_Price_BAO_LineItem::getLineItems($this->participantID, 'participant'); CRM_Price_BAO_LineItem::changeFeeSelections($priceSetParams, $this->_participantId, 'participant', $this->_contributionId, $this->_feeBlock, $lineItem); $actualResults = $this->callAPISuccess('EntityFinancialTrxn', 'get', ['sequential' => 1, 'entity_table' => 'civicrm_financial_item'])['values']; + $this->assertCount(3, $actualResults); $expectedResults = [ [ 'id' => 2, -- 2.25.1