public function testAuthFacadeReturnsCorrectInformationAfterLoggingIn() { $this->assertNull(Auth::user()); $this->assertNull(Auth::id()); $user = User::create($this->userAttributes); $this->tester->amLoggedAs($user); $this->assertEquals($user, Auth::user()); $this->assertEquals($user->id, Auth::id()); }