Update LoginTest

This commit is contained in:
Daniel Supernault 2018-10-04 15:20:51 -06:00
parent 87535142f7
commit f6ed376dc1
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 7 additions and 3 deletions

View File

@ -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);
}
}
}