Skip to content

Commit

Permalink
イベントのオンオフを行う際にグローバルイベントマネージャーを指定した場合に例外を投げるように変更
Browse files Browse the repository at this point in the history
処理がループしてしまうため
  • Loading branch information
ryuring committed Nov 25, 2024
1 parent 93c1a9d commit a5cccf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/tests/TestCase/Utility/BcUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit a5cccf9

Please sign in to comment.