Skip to content

Commit

Permalink
[5.6] $this->be() Test helper should return $this (#23919)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoWalker89 authored and taylorotwell committed Apr 18, 2018
1 parent c716d9c commit a0e15f3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ public function actingAs(UserContract $user, $driver = null)
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param string|null $driver
* @return void
* @return $this
*/
public function be(UserContract $user, $driver = null)
{
$this->app['auth']->guard($driver)->setUser($user);

$this->app['auth']->shouldUse($driver);

return $this;
}

/**
Expand Down

0 comments on commit a0e15f3

Please sign in to comment.