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

Fix the tests

parent 057d9607
Branches
Tags v0.1.6
No related merge requests found
Pipeline #59843 passed
......@@ -8,6 +8,7 @@ use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
use Dbp\Relay\AuthBundle\Authenticator\BearerUserProvider;
use Dbp\Relay\AuthBundle\OIDC\OIDProvider;
use Dbp\Relay\AuthBundle\Tests\DummyUserSession;
use Psr\Log\NullLogger;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
class BearerUserProviderTest extends ApiTestCase
......@@ -37,6 +38,7 @@ class BearerUserProviderTest extends ApiTestCase
$oid = new OIDProvider();
$udprov = new DummyUserSession('foo', ['role']);
$prov = new BearerUserProvider($udprov, $oid);
$prov->setLogger(new NullLogger());
$prov->setConfig([
'remote_validation' => false,
'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