@@ -79,6 +79,17 @@ public function testGetSLOurl()
7979 $ this ->assertEquals ($ this ->_auth ->getSLOurl (), $ sloUrl );
8080 }
8181
82+ /**
83+ * Tests the getSLOResponseUrl method of the OneLogin_Saml2_Auth class
84+ *
85+ * @covers OneLogin_Saml2_Auth::getSLOurl
86+ */
87+ public function testGetSLOResponseUrl ()
88+ {
89+ $ sloResponseUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['responseUrl ' ];
90+ $ this ->assertEquals ($ this ->_auth ->getSLOResponseUrl (), $ sloResponseUrl );
91+ }
92+
8293 /**
8394 * Tests the processResponse method of the OneLogin_Saml2_Auth class
8495 * Case No Response, An exception is throw
@@ -548,8 +559,8 @@ public function testProcessSLORequestInvalidValid()
548559 $ parsedQuery = getParamsFromUrl ($ targetUrl );
549560
550561 $ this ->assertEmpty ($ this ->_auth ->getErrors ());
551- $ sloUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['url ' ];
552- $ this ->assertContains ($ sloUrl , $ targetUrl );
562+ $ sloResponseUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['responseUrl ' ];
563+ $ this ->assertContains ($ sloResponseUrl , $ targetUrl );
553564 $ this ->assertArrayHasKey ('SAMLResponse ' , $ parsedQuery );
554565 $ this ->assertArrayNotHasKey ('RelayState ' , $ parsedQuery );
555566 }
@@ -570,8 +581,8 @@ public function testProcessSLORequestInvalidValid()
570581 $ parsedQuery = getParamsFromUrl ($ targetUrl );
571582
572583 $ this ->assertEmpty ($ this ->_auth ->getErrors ());
573- $ sloUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['url ' ];
574- $ this ->assertContains ($ sloUrl , $ targetUrl );
584+ $ sloResponseUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['responseUrl ' ];
585+ $ this ->assertContains ($ sloResponseUrl , $ targetUrl );
575586 $ this ->assertArrayHasKey ('SAMLResponse ' , $ parsedQuery );
576587 $ this ->assertArrayNotHasKey ('RelayState ' , $ parsedQuery );
577588 }
@@ -636,8 +647,8 @@ public function testProcessSLORequestDeletingSession()
636647 $ targetUrl = getUrlFromRedirect ($ trace );
637648 $ parsedQuery = getParamsFromUrl ($ targetUrl );
638649
639- $ sloUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['url ' ];
640- $ this ->assertContains ($ sloUrl , $ targetUrl );
650+ $ sloResponseUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['responseUrl ' ];
651+ $ this ->assertContains ($ sloResponseUrl , $ targetUrl );
641652 $ this ->assertArrayHasKey ('SAMLResponse ' , $ parsedQuery );
642653 $ this ->assertArrayNotHasKey ('RelayState ' , $ parsedQuery );
643654
@@ -657,8 +668,8 @@ public function testProcessSLORequestDeletingSession()
657668 $ targetUrl = getUrlFromRedirect ($ trace );
658669 $ parsedQuery = getParamsFromUrl ($ targetUrl );
659670
660- $ sloUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['url ' ];
661- $ this ->assertContains ($ sloUrl , $ targetUrl );
671+ $ sloResponseUrl = $ this ->_settingsInfo ['idp ' ]['singleLogoutService ' ]['responseUrl ' ];
672+ $ this ->assertContains ($ sloResponseUrl , $ targetUrl );
662673 $ this ->assertArrayHasKey ('SAMLResponse ' , $ parsedQuery );
663674 $ this ->assertArrayNotHasKey ('RelayState ' , $ parsedQuery );
664675
0 commit comments