From f6ed376dc162148cce0e464f1d323aee6a78f56b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 4 Oct 2018 15:20:51 -0600 Subject: [PATCH] Update LoginTest --- tests/Feature/LoginTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/Feature/LoginTest.php b/tests/Feature/LoginTest.php index 9a70913bf..4eb515252 100644 --- a/tests/Feature/LoginTest.php +++ b/tests/Feature/LoginTest.php @@ -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); + } } } \ No newline at end of file