mirror of https://github.com/pixelfed/pixelfed.git
34 lines
752 B
PHP
34 lines
752 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 {
|
|
$response = $this->get('register');
|
|
|
|
$response->assertSuccessful()
|
|
->assertSee('Registration is closed');
|
|
}
|
|
}
|
|
} |