Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Iman Ghafoori <[email protected]>
  • Loading branch information
imanghafoori1 committed Jun 15, 2024
1 parent 1b4f56f commit ac979e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/EventsAuthorizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public function testEventIsAuthorized1()
HeyMan::whenEventHappens(['myEvent', 'myEvent1'])->youShouldHaveRole('reader')->otherwise()->weDenyAccess();
app(StartGuarding::class)->start();

MakeSure::about($this)->whenEventHappens('myEvent1')->exceptionIsThrown(AuthorizationException::class);
$this->expectException(AuthorizationException::class);
event('myEvent1');
}

public function testEventIsAuthorized2()
Expand Down

0 comments on commit ac979e5

Please sign in to comment.