<?php

namespace Tests\Feature\Controllers;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Mail;
use Mtc\MercuryDataModels\User;
use Tests\TestCase;

class AuthControllerTest extends TestCase
{
    use RefreshDatabase;

    /**
     * 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);
    }
}
