@@ -403,6 +403,66 @@ public function testCheckSettings()
403403 }
404404 }
405405
406+ /**
407+ * Tests the getIdPSSOurl method of the Settings class
408+ *
409+ * @covers OneLogin\Saml2\Settings::getIdPSSOurl
410+ */
411+ public function testGetIdPSSOurl ()
412+ {
413+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
414+ include $ settingsDir .'settings1.php ' ;
415+
416+ $ settings = new Settings ($ settingsInfo );
417+
418+ $ ssoUrl = "http://idp.example.com/SSOService.php " ;
419+ $ this ->assertEquals ($ settings ->getIdPSSOUrl (), $ ssoUrl );
420+ }
421+
422+ /**
423+ * Tests the getIdPSLOurl method of the Settings class
424+ *
425+ * @covers OneLogin\Saml2\Settings::getIdPSLOurl
426+ */
427+ public function testGetIdPSLOurl ()
428+ {
429+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
430+ include $ settingsDir .'settings1.php ' ;
431+
432+ $ settings = new Settings ($ settingsInfo );
433+
434+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
435+ $ this ->assertEquals ($ settings ->getIdPSLOUrl (), $ sloUrl );
436+
437+ include $ settingsDir .'settings2.php ' ;
438+ $ settings2 = new Settings ($ settingsInfo );
439+
440+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
441+ $ this ->assertEquals ($ settings2 ->getIdPSLOUrl (), $ sloUrl );
442+ }
443+
444+ /**
445+ * Tests the getIdPSLOResponseUrl method of the Settings class
446+ *
447+ * @covers OneLogin\Saml2\Settings::getIdPSLOResponseUrl
448+ */
449+ public function testGetIdPSLOResponseUrl ()
450+ {
451+ $ settingsDir = TEST_ROOT .'/settings/ ' ;
452+ include $ settingsDir .'settings1.php ' ;
453+
454+ $ settings = new Settings ($ settingsInfo );
455+
456+ $ sloUrl = "http://idp.example.com/SingleLogoutServiceResponse.php " ;
457+ $ this ->assertEquals ($ settings ->getIdPSLOResponseUrl (), $ sloUrl );
458+
459+ include $ settingsDir .'settings2.php ' ;
460+ $ settings2 = new Settings ($ settingsInfo );
461+
462+ $ sloUrl = "http://idp.example.com/SingleLogoutService.php " ;
463+ $ this ->assertEquals ($ settings2 ->getIdPSLOUrl (), $ sloUrl );
464+ }
465+
406466 /**
407467 * Tests the getSPMetadata method of the Settings
408468 * Case unsigned metadata
0 commit comments