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 */
|
||||
public function view_register_page()
|
||||
{
|
||||
$response = $this->get('register');
|
||||
if(true === config('pixelfed.open_registration')) {
|
||||
$response = $this->get('register');
|
||||
|
||||
$response->assertSuccessful()
|
||||
->assertSee('Register a new account');
|
||||
$response->assertSuccessful()
|
||||
->assertSee('Register a new account');
|
||||
} else {
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue