Skip to content

Commit 366dfb7

Browse files
authoredMay 21, 2021
Merge pull request #20369 from seamuslee001/more_voids
[NFC] Add in more voids to unit tests to support PHPUnit8
2 parents 91b8545 + 703a1c6 commit 366dfb7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
 

‎tests/phpunit/CRM/Contribute/Form/ContributionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function tearDown(): void {
133133
*
134134
* @throws \CRM_Core_Exception
135135
*/
136-
protected function assertPostConditions() {
136+
protected function assertPostConditions(): void {
137137
$this->validateAllPayments();
138138
}
139139

‎tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function tearDown(): void {
5353
*
5454
* @throws \CRM_Core_Exception
5555
*/
56-
protected function assertPostConditions() {
56+
protected function assertPostConditions(): void {
5757
$this->validateAllPayments();
5858
$this->validateAllContributions();
5959
}

‎tests/phpunit/CRM/Event/Form/ParticipantTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setUp(): void {
2828
*
2929
* @throws \CRM_Core_Exception
3030
*/
31-
protected function assertPostConditions() {
31+
protected function assertPostConditions(): void {
3232
$this->validateAllPayments();
3333
$this->validateAllContributions();
3434
}

‎tests/phpunit/CiviTest/CiviUnitTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ protected function tearDown(): void {
539539
* @throws \API_Exception
540540
* @throws \CRM_Core_Exception
541541
*/
542-
protected function assertPostConditions() {
542+
protected function assertPostConditions(): void {
543543
// Reset to version 3 as not all (e.g payments) work on v4
544544
$this->_apiversion = 3;
545545
if ($this->isLocationTypesOnPostAssert) {

‎tests/phpunit/api/v4/Entity/CaseTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
class CaseTest extends UnitTestCase {
2929

30-
public function setUp() {
30+
public function setUp(): void {
3131
parent::setUp();
3232
\CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase');
3333
$this->loadDataSet('CaseType');

0 commit comments

Comments
 (0)
Please sign in to comment.