]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/AuthTest.php
Fixed failing webhook test cases
[bookstack] / tests / Auth / AuthTest.php
index 50f56bfb9c6d8d49926d29b1737aa0e4d8866390..2c48131a885e559cf114e13c4d0e9cdfa6f8b59f 100644 (file)
@@ -131,8 +131,8 @@ class AuthTest extends TestCase
         });
 
         // Check confirmation email confirmation activation.
-        $this->get('/register/confirm/' . $emailConfirmation->token)->assertRedirect('/');
-        $this->get('/')->assertSee($user->name);
+        $this->get('/register/confirm/' . $emailConfirmation->token)->assertRedirect('/login');
+        $this->get('/login')->assertSee('Your email has been confirmed! You should now be able to login using this email address.');
         $this->assertDatabaseMissing('email_confirmations', ['token' => $emailConfirmation->token]);
         $this->assertDatabaseHas('users', ['name' => $dbUser->name, 'email' => $dbUser->email, 'email_confirmed' => true]);
     }