pixelfed/tests/Feature/LoginTest.php
Daniel Supernault 45a48270d6
Update LoginTest
2018-10-04 15:43:08 -06:00

31 lines
639 B
PHP

<?php
namespace Tests\Feature;
use Tests\TestCase;
class LoginTest extends TestCase
{
/** @test */
public function view_login_page()
{
$response = $this->get('login');
$response->assertSuccessful()
->assertSee('Forgot Your Password?');
}
/** @test */
public function view_register_page()
{
if(true === config('pixelfed.open_registration')) {
$response = $this->get('register');
$response->assertSuccessful()
->assertSee('Register a new account');
} else {
$this->assertTrue(true);
}
}
}