mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
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.
This commit is contained in:
parent
3eeb1e7d08
commit
d48ac0a37d
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user