I'm completely new in testing. I'm trying to test the login using Laracasts/Integrated
/** @test */
public function it_should_login_user()
{
$credentials = [
'email' => '[email protected]',
'password' => '12345'
];
$this->visit('/auth/login')
->submitForm('Login', $credentials)
->andSee('Dashboard')->onPage('/');
}
I have an H1 header with the legend "Dashboard" but I get this error
1) ExampleTest::it_should_login_user A GET request to 'http://localhost/auth/login' failed. Got a 500 code instead.
PDOException on /Users/marionava/Code/ilencuentro/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php line 47
Could you help me?