Merge pull request #493 from lawsonjt/dev

Login Test
This commit is contained in:
daniel 2018-10-04 15:18:16 -06:00 committed by GitHub
commit 87535142f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');
}
}