From: Dan Brown Date: Sat, 26 Sep 2020 17:24:05 +0000 (+0100) Subject: Removed redundant test X-Git-Tag: v0.30.2~1^2~6 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/d48ac0a37d0daafe2ba11255488d9c6233d73fef Removed redundant test Now replaced in recent commit by one that checks actual message gets displayed on the redirect page. Redirect page changed to login page. --- diff --git a/tests/Auth/Saml2Test.php b/tests/Auth/Saml2Test.php index d58162497..58c02b471 100644 --- a/tests/Auth/Saml2Test.php +++ b/tests/Auth/Saml2Test.php @@ -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 = 'user@example.com'; - $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 user@example.com already exists but with different credentials.', $errorMessage); - }); - } - public function test_saml_routes_are_only_active_if_saml_enabled() { config()->set(['auth.method' => 'standard']);