I keeping getting an error response when the http test whenever the endpoint I am testing attempts to send an email.
public function testBasicTest () { $faker = \Faker\Factory::create();
error_log('faker details -->');
error_log($faker->name);
error_log($faker->unique()->email);
// http test -------->
$response = $this->json('POST', 'api/customRegister',
[
'name' => $faker->name,
'email' => $faker->unique()->email,
'password' => $faker->password
]);
error_log(json_encode($response->original,true));
$response->assertStatus(200);
}
// endpoint ------>
$when = Carbon\Carbon::now()->addMinutes(1);
\Mail::to($user)->later($when, new EmailConfirmation($user)); \Mail::to('connorlloydmoore@gmail.com')->later($when, new EmailConfirmation($user));
Aucun commentaire:
Enregistrer un commentaire