mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
728 B
PHP
33 lines
728 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 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');
|
|
}
|
|
}
|
|
} |