Skip to content
Snippets Groups Projects
Commit ce556a11 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Fix the tests

parent 057d9607
No related branches found
No related tags found
No related merge requests found
Pipeline #59843 passed
...@@ -8,6 +8,7 @@ use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase; ...@@ -8,6 +8,7 @@ use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
use Dbp\Relay\AuthBundle\Authenticator\BearerUserProvider; use Dbp\Relay\AuthBundle\Authenticator\BearerUserProvider;
use Dbp\Relay\AuthBundle\OIDC\OIDProvider; use Dbp\Relay\AuthBundle\OIDC\OIDProvider;
use Dbp\Relay\AuthBundle\Tests\DummyUserSession; use Dbp\Relay\AuthBundle\Tests\DummyUserSession;
use Psr\Log\NullLogger;
use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Exception\AuthenticationException;
class BearerUserProviderTest extends ApiTestCase class BearerUserProviderTest extends ApiTestCase
...@@ -37,6 +38,7 @@ class BearerUserProviderTest extends ApiTestCase ...@@ -37,6 +38,7 @@ class BearerUserProviderTest extends ApiTestCase
$oid = new OIDProvider(); $oid = new OIDProvider();
$udprov = new DummyUserSession('foo', ['role']); $udprov = new DummyUserSession('foo', ['role']);
$prov = new BearerUserProvider($udprov, $oid); $prov = new BearerUserProvider($udprov, $oid);
$prov->setLogger(new NullLogger());
$prov->setConfig([ $prov->setConfig([
'remote_validation' => false, 'remote_validation' => false,
'local_validation_leeway' => 0, 'local_validation_leeway' => 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment