Find where we are not setting tax_amount
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 28 Jul 2023 02:28:05 +0000 (14:28 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 31 Aug 2023 10:55:22 +0000 (22:55 +1200)
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 2186a2b2c05de40d3651f89af96a5dca34357359..cdd5a77d494d3cc4173972b3c75e2753822c69bf 100644 (file)
@@ -3369,6 +3369,7 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
         'contribution_id' => $contribution['id'],
         'return' => ['tax_amount', 'line_total', 'entity_table', 'entity_id', 'qty'],
       ])['values'];
+      $this->assertIsNumeric($contribution['tax_amount']);
       $total = 0;
       $taxTotal = 0;
       $memberships = [];