[php8-compact] Fix Event Form test for php8 by setting totalAmount in the form params
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 16 Jun 2021 08:18:47 +0000 (08:18 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 16 Jun 2021 08:18:47 +0000 (08:18 +0000)
tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php

index f973638f34448bf56ad61b0b71228df5d1011778..fb444eb4ff6fd4a7b19973a3b30a17296daade04 100644 (file)
@@ -349,6 +349,7 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
       'id' => $event['id'],
       'contributeMode' => 'direct',
       'registerByID' => $this->createLoggedInUser(),
+      'totalAmount' => 0,
       'params' => [
         [
           'qfKey' => 'e6eb2903eae63d4c5c6cc70bfdda8741_2801',