File tree Expand file tree Collapse file tree
modules/saml/routing/routes
tests/modules/saml/lib/Controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ websso-single-sign-on:
3232 path : /idp/singleSignOnService
3333 defaults : { _controller: 'SimpleSAML\Module\saml\Controller\WebBrowserSingleSignOn::singleSignOnService' }
3434websso-artifact-resolution :
35- path : // idp/artifactResolutionService
35+ path : /idp/artifactResolutionService
3636 defaults : { _controller: 'SimpleSAML\Module\saml\Controller\WebBrowserSingleSignOn::artifactResolutionService' }
3737websso-metadata :
3838 path : /idp/metadata
Original file line number Diff line number Diff line change 1010use SimpleSAML \Module \saml \Controller ;
1111use SimpleSAML \Session ;
1212use SimpleSAML \Utils ;
13- // use Symfony\Component\HttpFoundation\Request;
13+ use Symfony \Component \HttpFoundation \Request ;
1414use Symfony \Component \HttpFoundation \Response ;
1515
1616/**
@@ -84,14 +84,19 @@ public function requireAdmin(): void
8484 */
8585 public function testMetadataAccess (bool $ authenticated , bool $ protected ): void
8686 {
87- $ c = new Controller \ServiceProvider ($ this ->config , $ this ->session );
87+ $ request = Request::create (
88+ '/idp/metadata ' ,
89+ 'GET ' ,
90+ );
91+
92+ $ c = new Controller \Metadata ($ this ->config , $ this ->session );
8893
8994 if ($ authenticated === true || $ protected === false ) {
9095 // Bypass authentication - mock being authenticated
9196 $ c ->setAuthUtils ($ this ->authUtils );
9297 }
9398
94- $ result = $ c ->metadata (' phpunit ' );
99+ $ result = $ c ->metadata ($ request );
95100
96101 if ($ authenticated !== false && $ protected !== true ) {
97102 // ($authenticated === true) or ($protected === false)
You can’t perform that action at this time.
0 commit comments