From 19d7b4ab4a19fcde4bd59fca07729718e25e6ced Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 19 Dec 2023 12:11:02 -0800 Subject: [PATCH] (REF) EventCheck - Drop unused methods `setUp()`, `tearDown()` --- Civi/Test/EventCheck.php | 6 ------ Civi/Test/EventChecker.php | 5 ----- 2 files changed, 11 deletions(-) diff --git a/Civi/Test/EventCheck.php b/Civi/Test/EventCheck.php index 4908215a05..665ad4871f 100644 --- a/Civi/Test/EventCheck.php +++ b/Civi/Test/EventCheck.php @@ -53,10 +53,4 @@ class EventCheck extends Assert { } } - public function setUp() { - } - - public function tearDown() { - } - } diff --git a/Civi/Test/EventChecker.php b/Civi/Test/EventChecker.php index b3295cadff..1ac6db7fd8 100644 --- a/Civi/Test/EventChecker.php +++ b/Civi/Test/EventChecker.php @@ -38,7 +38,6 @@ class EventChecker { if ($template->isSupported($test)) { $checker = clone $template; $this->activeChecks[] = $checker; - $checker->setUp(); } } } @@ -75,10 +74,6 @@ class EventChecker { */ public function stop() { // NOTE: In test environment, dispatcher will be removed regardless. - foreach ($this->activeChecks ?? [] as $checker) { - /** @var \Civi\Test\EventCheck $checker */ - Invasive::call([$checker, 'tearDown']); - } $this->activeChecks = NULL; return $this; } -- 2.25.1