Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-authoauth2
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-authoauth2
Commits
5cc26124
Commit
5cc26124
authored
5 years ago
by
Patrick Radtke
Browse files
Options
Downloads
Patches
Plain Diff
Fix config.php to use in broken tests
parent
231056f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/lib/Auth/Source/LinkedInV2AuthTest.php
+4
-0
4 additions, 0 deletions
tests/lib/Auth/Source/LinkedInV2AuthTest.php
tests/lib/Auth/Source/OpenIDConnectTest.php
+9
-0
9 additions, 0 deletions
tests/lib/Auth/Source/OpenIDConnectTest.php
with
13 additions
and
0 deletions
tests/lib/Auth/Source/LinkedInV2AuthTest.php
+
4
−
0
View file @
5cc26124
...
...
@@ -5,6 +5,7 @@ namespace Test\SimpleSAML\Auth\Source;
use
League\OAuth2\Client\Provider\AbstractProvider
;
use
League\OAuth2\Client\Token\AccessToken
;
use
Psr\Http\Message\RequestInterface
;
use
SimpleSAML\Configuration
;
use
SimpleSAML\Module\authoauth2\Auth\Source\LinkedInV2Auth
;
class
LinkedInV2AuthTest
extends
\PHPUnit_Framework_TestCase
...
...
@@ -12,6 +13,9 @@ class LinkedInV2AuthTest extends \PHPUnit_Framework_TestCase
public
static
function
setUpBeforeClass
()
{
putenv
(
'SIMPLESAMLPHP_CONFIG_DIR='
.
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/config'
);
// When all tests are run at once, sometimes a Configuration is created prior to us
// setting the one we want to use for the test.
Configuration
::
clearInternalState
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
tests/lib/Auth/Source/OpenIDConnectTest.php
+
9
−
0
View file @
5cc26124
...
...
@@ -7,6 +7,7 @@ use CirrusIdentity\SSP\Test\MockHttp;
use
League\OAuth2\Client\Provider\AbstractProvider
;
use
League\OAuth2\Client\Provider\GenericResourceOwner
;
use
League\OAuth2\Client\Token\AccessToken
;
use
SimpleSAML\Configuration
;
use
SimpleSAML\Module\authoauth2\Auth\Source\OpenIDConnect
;
use
Test\SimpleSAML\MockOAuth2Provider
;
use
Test\SimpleSAML\MockOpenIDConnectProvider
;
...
...
@@ -23,6 +24,14 @@ class OpenIDConnectTest extends OAuth2Test
return
new
OpenIDConnect
(
$info
,
$config
);
}
public
static
function
setUpBeforeClass
()
{
putenv
(
'SIMPLESAMLPHP_CONFIG_DIR='
.
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
'/config'
);
// Some of the constructs in this test cause a Configuration to be created prior to us
// setting the one we want to use for the test.
Configuration
::
clearInternalState
();
}
public
function
finalStepsDataProvider
()
{
return
[
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment