Skip to content

Commit

Permalink
Merge pull request #129 from mehradsadeghi/tests2
Browse files Browse the repository at this point in the history
Fixing The Test
  • Loading branch information
imanghafoori1 committed Oct 6, 2020
2 parents 1442276 + f25e86d commit 8e666d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/MethodShouldAllowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public function test_Closure_Should_Allow()

public function test_Value_Should_Allow()
{
HeyMan::whenYouMakeView('welcome')->always()->weDenyAccess();
$value = false;

HeyMan::whenYouMakeView('welcome')->thisValueShouldAllow($value)->otherwise()->weDenyAccess();
app(StartGuarding::class)->start();
$this->expectException(AuthorizationException::class);

Expand Down

0 comments on commit 8e666d7

Please sign in to comment.