我运行了以下测试,我收到一个 failed_asserting 错误为真。有人可以进一步解释为什么会这样吗?
/** @test */
public function a_user_logs_in()
{
$user = factory(App\User::class)->create(['email' => 'john@example.com', 'password' => bcrypt('testpass123')]);
$this->visit(route('login'));
$this->type($user->email, 'email');
$this->type($user->password, 'password');
$this->press('Login');
$this->assertTrue(Auth::check());
$this->seePageIs(route('dashboard'));
}