Update LoginTest

pull/503/head
Daniel Supernault 7 years ago
parent 87535142f7
commit f6ed376dc1
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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…
Cancel
Save