Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Add event assertion for AuthController
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Nov 5, 2017
1 parent c345b4d commit 4d21fb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/AuthControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ public function testHandleRegister()
'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
Expand Down

0 comments on commit 4d21fb5

Please sign in to comment.