pixelfed/tests/Feature/LoginTest.php
Daniel Supernault 13e1b51140
Fix tests
2019-01-30 18:39:51 -07:00

33 lines
734 B
PHP

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