diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php index 94f477e409f8..a5f05a5e9b0a 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php @@ -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; } /**