mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update LoginTest
This commit is contained in:
parent
87535142f7
commit
f6ed376dc1
1 changed files with 7 additions and 3 deletions
|
@ -21,9 +21,13 @@ class LoginTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function view_register_page()
|
public function view_register_page()
|
||||||
{
|
{
|
||||||
$response = $this->get('register');
|
if(true === config('pixelfed.open_registration')) {
|
||||||
|
$response = $this->get('register');
|
||||||
|
|
||||||
$response->assertSuccessful()
|
$response->assertSuccessful()
|
||||||
->assertSee('Register a new account');
|
->assertSee('Register a new account');
|
||||||
|
} else {
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue