]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/Saml2Test.php
Added language list favourites sorting, updated styles
[bookstack] / tests / Auth / Saml2Test.php
index cb217585c5fc18f7018aa9a83a0bbdf4b984a361..885adf9e0a48fca8a40eab1824fe35ccd24459e3 100644 (file)
@@ -56,7 +56,7 @@ class Saml2Test extends TestCase
     {
         $req = $this->get('/login');
         $req->assertSeeText('SingleSignOn-Testing');
-        $req->assertElementExists('form[action$="/saml2/login"][method=POST] button');
+        $this->withHtml($req)->assertElementExists('form[action$="/saml2/login"][method=POST] button');
     }
 
     public function test_login()
@@ -157,7 +157,7 @@ class Saml2Test extends TestCase
         ]);
 
         $resp = $this->actingAs($this->getEditor())->get('/');
-        $resp->assertElementContains('form[action$="/saml2/logout"] button', 'Logout');
+        $this->withHtml($resp)->assertElementContains('form[action$="/saml2/logout"] button', 'Logout');
     }
 
     public function test_logout_sls_flow()