Add event assertion for AuthController
This commit is contained in:
parent
c345b4dab3
commit
4d21fb5b02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user