<?php

namespace Tests\Feature\Controllers;

use Illuminate\Support\Facades\Mail;
use Mtc\MercuryDataModels\User;
use Tests\DatabaseTestCase;

class AuthControllerTest extends DatabaseTestCase
{
    /**
     * A basic feature test example.
     *
     * @return void
     */
    public function testShow()
    {
        Mail::fake();
        User::factory()->create(['email' => 'test@example.com']);
        $response = $this->postJson(route('password.email'), [
            'email' => 'test@example.com',
        ]);

        $response->assertStatus(200);
    }
}
