From 12a2b393a46b6bc8a3a83e61480b74ace9d2777b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 13 Nov 2021 13:59:29 -0500 Subject: [PATCH] Civi --- tests/phpunit/Civi/Test/ExampleHookTest.php | 2 ++ tests/phpunit/Civi/Test/ExampleSubscriberTest.php | 2 ++ tests/phpunit/Civi/Test/ExampleTransactionalTest.php | 1 + 3 files changed, 5 insertions(+) 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', -- 2.25.1