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.
pixelfed/tests/Feature/LoginTest.php

33 lines
728 B
PHTML

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