pixelfed/tests/Feature/LoginTest.php

31 lines
639 B
PHP
Raw Normal View History

2018-10-04 16:00:15 +00:00
<?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()
{
2018-10-04 21:20:51 +00:00
if(true === config('pixelfed.open_registration')) {
$response = $this->get('register');
2018-10-04 16:00:15 +00:00
2018-10-04 21:20:51 +00:00
$response->assertSuccessful()
->assertSee('Register a new account');
} else {
$this->assertTrue(true);
}
2018-10-04 16:00:15 +00:00
}
}