Login Test

This commit is contained in:
Joshua 2018-10-04 11:00:15 -05:00
parent 8cb0242445
commit 6288df391d

View file

@ -0,0 +1,29 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class LoginTest extends TestCase
{
use DatabaseTransactions;
/** @test */
public function view_login_page()
{
$response = $this->get('login');
$response->assertSuccessful()
->assertSee('Forgot Your Password?');
}
/** @test */
public function view_register_page()
{
$response = $this->get('register');
$response->assertSuccessful()
->assertSee('Register a new account');
}
}