diff --git a/tests/AuthControllerTest.php b/tests/AuthControllerTest.php index 40eab855..3bf51ccd 100644 --- a/tests/AuthControllerTest.php +++ b/tests/AuthControllerTest.php @@ -407,6 +407,7 @@ class AuthControllerTest extends TestCase 'msg' => trans('auth.register.success'), 'redirect' => true ]); + $this->expectsEvents(Events\PlayerWasAdded::class); $this->assertNotNull(\App\Models\Player::where('player_name', 'new_player')->first()); // Register with a duplicated player name