@@ -419,6 +419,66 @@ public function testCheckSettings()
419419 }
420420 }
421421
422+ /**
423+ * Tests the getIdPSSOurl method of the OneLogin_Saml2_Settings class
424+ *
425+ * @covers OneLogin_Saml2_Settings::getIdPSSOurl
426+ */
427+ public function testGetIdPSSOurl ()
428+ {
429+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
430+ include $ settingsDir .'settings1.php ' ;
431+
432+ $ settings = new OneLogin_Saml2_Settings ($ settingsInfo );
433+
434+ $ ssoUrl = "http://idp.example.com/SSOService.php " ;
435+ $ this ->assertEquals ($ settings ->getIdPSSOUrl (), $ ssoUrl );
436+ }
437+
438+ /**
439+ * Tests the getIdPSLOurl method of the OneLogin_Saml2_Settings class
440+ *
441+ * @covers OneLogin_Saml2_Settings::getIdPSLOurl
442+ */
443+ public function testGetIdPSLOurl ()
444+ {
445+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
446+ include $ settingsDir .'settings1.php ' ;
447+
448+ $ settings = new OneLogin_Saml2_Settings ($ settingsInfo );
449+
450+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
451+ $ this ->assertEquals ($ settings ->getIdPSLOUrl (), $ sloUrl );
452+
453+ include $ settingsDir .'settings2.php ' ;
454+ $ settings2 = new OneLogin_Saml2_Settings ($ settingsInfo );
455+
456+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
457+ $ this ->assertEquals ($ settings2 ->getIdPSLOUrl (), $ sloUrl );
458+ }
459+
460+ /**
461+ * Tests the getIdPSLOResponseUrl method of the OneLogin_Saml2_Settings class
462+ *
463+ * @covers OneLogin_Saml2_Settings::getIdPSLOResponseUrl
464+ */
465+ public function testGetIdPSLOResponseUrl ()
466+ {
467+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
468+ include $ settingsDir .'settings1.php ' ;
469+
470+ $ settings = new OneLogin_Saml2_Settings ($ settingsInfo );
471+
472+ $ sloUrl = "http://idp.example.com/SingleLogoutServiceResponse.php " ;
473+ $ this ->assertEquals ($ settings ->getIdPSLOResponseUrl (), $ sloUrl );
474+
475+ include $ settingsDir .'settings2.php ' ;
476+ $ settings2 = new OneLogin_Saml2_Settings ($ settingsInfo );
477+
478+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
479+ $ this ->assertEquals ($ settings2 ->getIdPSLOUrl (), $ sloUrl );
480+ }
481+
422482 /**
423483 * Tests the getSPMetadata method of the OneLogin_Saml2_Settings
424484 * Case unsigned metadata
0 commit comments