|
|
@ -5,6 +5,7 @@ namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
|
|
use Tests\TestCase;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
|
|
|
|
|
|
use App\User;
|
|
|
|
|
|
|
|
|
|
|
|
class LoginTest extends TestCase
|
|
|
|
class LoginTest extends TestCase
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -16,18 +17,4 @@ class LoginTest extends TestCase
|
|
|
|
|
|
|
|
|
|
|
|
$response->assertSee('Forgot Password');
|
|
|
|
$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');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|