Skip to content

Commit aac7430

Browse files
committed
test LogoutResponse to responseUrl
1 parent 0b007b6 commit aac7430

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/src/OneLogin/Saml2/AuthTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ public function testProcessSLORequestInvalidValid()
620620
$parsedQuery = getParamsFromUrl($targetUrl);
621621

622622
$this->assertEmpty($this->_auth->getErrors());
623-
$sloUrl = $this->_settingsInfo['idp']['singleLogoutService']['url'];
624-
$this->assertContains($sloUrl, $targetUrl);
623+
$sloResponseUrl = $this->_settingsInfo['idp']['singleLogoutService']['responseUrl'];
624+
$this->assertContains($sloResponseUrl, $targetUrl);
625625
$this->assertArrayHasKey('SAMLResponse', $parsedQuery);
626626
$this->assertArrayNotHasKey('RelayState', $parsedQuery);
627627

@@ -635,8 +635,8 @@ public function testProcessSLORequestInvalidValid()
635635
$parsedQuery = getParamsFromUrl($targetUrl);
636636

637637
$this->assertEmpty($this->_auth->getErrors());
638-
$sloUrl = $this->_settingsInfo['idp']['singleLogoutService']['url'];
639-
$this->assertContains($sloUrl, $targetUrl);
638+
$sloResponseUrl = $this->_settingsInfo['idp']['singleLogoutService']['responseUrl'];
639+
$this->assertContains($sloResponseUrl, $targetUrl);
640640
$this->assertArrayHasKey('SAMLResponse', $parsedQuery);
641641
$this->assertArrayNotHasKey('RelayState', $parsedQuery);
642642
}

0 commit comments

Comments
 (0)