[NFC] Add in more voids to unit tests to support PHPUnit8
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 20 May 2021 23:49:10 +0000 (09:49 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 20 May 2021 23:49:10 +0000 (09:49 +1000)
tests/phpunit/CRM/Contribute/Form/ContributionTest.php
tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v4/Entity/CaseTest.php

index b33161f66b847fdc6005ae378123de865daa225c..fa1638c40553d8b53df06bfb898a79e3a56a9ad9 100644 (file)
@@ -133,7 +133,7 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  protected function assertPostConditions() {
+  protected function assertPostConditions(): void {
     $this->validateAllPayments();
   }
 
index ae19b6c2bd923e0900f0d35cf20c0a89d02594c7..ca1ed20d8f7628b431a83df8dea97d3cb6837ae2 100644 (file)
@@ -53,7 +53,7 @@ class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  protected function assertPostConditions() {
+  protected function assertPostConditions(): void {
     $this->validateAllPayments();
     $this->validateAllContributions();
   }
index d817ddeb11455a6dc3a304b11e3b0610d9421cc6..d25f82e1af361c0c3ec6f33016318dbc7dcbb476 100644 (file)
@@ -28,7 +28,7 @@ class CRM_Event_Form_ParticipantTest extends CiviUnitTestCase {
    *
    * @throws \CRM_Core_Exception
    */
-  protected function assertPostConditions() {
+  protected function assertPostConditions(): void {
     $this->validateAllPayments();
     $this->validateAllContributions();
   }
index 9f2c06e3eedde1e3d18a448c93974d9bb36a86b1..b3c5348f0e5e1c4a50921bbaf4099c57ddb3dfba 100644 (file)
@@ -534,7 +534,7 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
    * @throws \API_Exception
    * @throws \CRM_Core_Exception
    */
-  protected function assertPostConditions() {
+  protected function assertPostConditions(): void {
     // Reset to version 3 as not all (e.g payments) work on v4
     $this->_apiversion = 3;
     if ($this->isLocationTypesOnPostAssert) {
index 9145bd8ec9b7fc82bd8b79ebca8e276c8ab9f73c..969e19c41440a2847e2a5ce3051fd95217a0030a 100644 (file)
@@ -27,7 +27,7 @@ use api\v4\UnitTestCase;
  */
 class CaseTest extends UnitTestCase {
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     \CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase');
     $this->loadDataSet('CaseType');