diff --git a/plugins/baser-core/tests/TestCase/Utility/BcUtilTest.php b/plugins/baser-core/tests/TestCase/Utility/BcUtilTest.php index 326ad66a0c..1c8bd095de 100644 --- a/plugins/baser-core/tests/TestCase/Utility/BcUtilTest.php +++ b/plugins/baser-core/tests/TestCase/Utility/BcUtilTest.php @@ -1206,7 +1206,7 @@ public static function fgetcsvRegDataProvider() */ public function testOnEventOffEvent(): void { - $eventManager = EventManager::instance(); + $eventManager = new EventManager(); $eventKey = 'testOnEvent'; $bcEvenListener = new class extends BcEventListener { public $events = ['event1'];