From 4d21fb5b020059cfd60e63c33dc69220272d725a Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Mon, 6 Nov 2017 07:46:43 +0800 Subject: [PATCH] Add event assertion for `AuthController` --- tests/AuthControllerTest.php | 1 + 1 file changed, 1 insertion(+) 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