]> BookStack Code Mirror - bookstack/commitdiff
Removed redundant test
authorDan Brown <redacted>
Sat, 26 Sep 2020 17:24:05 +0000 (18:24 +0100)
committerDan Brown <redacted>
Sat, 26 Sep 2020 17:24:05 +0000 (18:24 +0100)
Now replaced in recent commit by one that checks actual message gets
displayed on the redirect page.
Redirect page changed to login page.

tests/Auth/Saml2Test.php

index d58162497bcbd05802c92dbd87ae9621e9502bc6..58c02b47188a625b83a5aeb3d0ad80c5f4f81de0 100644 (file)
@@ -196,24 +196,6 @@ class Saml2Test extends TestCase
         });
     }
 
-    public function test_user_registration_with_existing_email()
-    {
-        config()->set([
-            'saml2.onelogin.strict' => false,
-        ]);
-
-        $viewer = $this->getViewer();
-        $viewer->email = '[email protected]';
-        $viewer->save();
-
-        $this->withPost(['SAMLResponse' => $this->acsPostData], function () {
-            $acsPost = $this->post('/saml2/acs');
-            $acsPost->assertRedirect('/');
-            $errorMessage = session()->get('error');
-            $this->assertEquals('A user with the email [email protected] already exists but with different credentials.', $errorMessage);
-        });
-    }
-
     public function test_saml_routes_are_only_active_if_saml_enabled()
     {
         config()->set(['auth.method' => 'standard']);