From: demeritcowboy Date: Sat, 13 Nov 2021 18:59:29 +0000 (-0500) Subject: Civi X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12a2b393a46b6bc8a3a83e61480b74ace9d2777b;p=civicrm-core.git Civi --- diff --git a/tests/phpunit/Civi/Test/ExampleHookTest.php b/tests/phpunit/Civi/Test/ExampleHookTest.php index c9a51ad8cd..62998b41a4 100644 --- a/tests/phpunit/Civi/Test/ExampleHookTest.php +++ b/tests/phpunit/Civi/Test/ExampleHookTest.php @@ -31,6 +31,7 @@ class ExampleHookTest extends \PHPUnit\Framework\TestCase implements HeadlessInt } protected function setUp(): void { + parent::setUp(); $this->contact = \CRM_Core_DAO::createTestObject('CRM_Contact_DAO_Contact', [ 'contact_type' => 'Individual', ]); @@ -41,6 +42,7 @@ class ExampleHookTest extends \PHPUnit\Framework\TestCase implements HeadlessInt protected function tearDown(): void { $this->contact->delete(); + parent::tearDown(); } /** diff --git a/tests/phpunit/Civi/Test/ExampleSubscriberTest.php b/tests/phpunit/Civi/Test/ExampleSubscriberTest.php index abf8d1a161..b82ad16d7f 100644 --- a/tests/phpunit/Civi/Test/ExampleSubscriberTest.php +++ b/tests/phpunit/Civi/Test/ExampleSubscriberTest.php @@ -30,6 +30,7 @@ class ExampleSubscriberTest extends \PHPUnit\Framework\TestCase implements Headl } protected function setUp(): void { + parent::setUp(); $this->contact = \CRM_Core_DAO::createTestObject('CRM_Contact_DAO_Contact', [ 'contact_type' => 'Individual', ]); @@ -40,6 +41,7 @@ class ExampleSubscriberTest extends \PHPUnit\Framework\TestCase implements Headl protected function tearDown(): void { $this->contact->delete(); + parent::tearDown(); } public static function getSubscribedEvents() { diff --git a/tests/phpunit/Civi/Test/ExampleTransactionalTest.php b/tests/phpunit/Civi/Test/ExampleTransactionalTest.php index ec3d503929..bef8ac1bac 100644 --- a/tests/phpunit/Civi/Test/ExampleTransactionalTest.php +++ b/tests/phpunit/Civi/Test/ExampleTransactionalTest.php @@ -22,6 +22,7 @@ class ExampleTransactionalTest extends \PHPUnit\Framework\TestCase implements He } protected function setUp(): void { + parent::setUp(); /** @var \CRM_Contact_DAO_Contact $contact */ $contact = \CRM_Core_DAO::createTestObject('CRM_Contact_DAO_Contact', [ 'contact_type' => 'Individual',