]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/OidcTest.php
Review and update of login auto initiation PR
[bookstack] / tests / Auth / OidcTest.php
index 34fd70115e345a839b0ea2441d18494d72a62555..9aebb4d04a6694c812c6d2a57f74f1f3660257bf 100644 (file)
@@ -26,7 +26,6 @@ class OidcTest extends TestCase
 
         config()->set([
             'auth.method'                 => 'oidc',
-            'auth.auto_redirect'          => false,
             'auth.defaults.guard'         => 'oidc',
             'oidc.name'                   => 'SingleSignOn-Testing',
             'oidc.display_name_claims'    => ['name'],
@@ -112,19 +111,6 @@ class OidcTest extends TestCase
         $this->assertPermissionError($resp);
     }
 
-    public function test_automatic_redirect_on_login()
-    {
-        config()->set([
-            'auth.auto_redirect'        => true,
-            'services.google.client_id' => false,
-            'services.github.client_id' => false,
-        ]);
-        $req = $this->get('/login');
-        $req->assertSeeText('SingleSignOn-Testing');
-        $req->assertElementExists('form[action$="/oidc/login"][method=POST] button');
-        $req->assertElementExists('div#loginredirect-wrapper');
-    }
-
     public function test_login()
     {
         $req = $this->post('/oidc/login');