Select Git revision
-
Reiter, Christoph authored
This has proper support for rollup while providing the same API. This is what open-wc recommends now and uses in their @open-wc/testing package
Reiter, Christoph authoredThis has proper support for rollup while providing the same API. This is what open-wc recommends now and uses in their @open-wc/testing package
DummyUserSession.php 898 B
<?php
declare(strict_types=1);
namespace Dbp\Relay\AuthBundle\Tests;
use Dbp\Relay\CoreBundle\API\UserSessionInterface;
class DummyUserSession implements UserSessionInterface
{
private $jwt;
private $id;
private $roles;
public function __construct(?string $id = 'id', array $roles = [])
{
$this->id = $id;
$this->roles = $roles;
}
public function setSessionToken(?array $jwt): void
{
$this->jwt = $jwt;
}
public function getUserIdentifier(): ?string
{
return $this->id;
}
public function getUserRoles(): array
{
return $this->roles;
}
public function getSessionLoggingId(): ?string
{
return 'logging-id';
}
public function getSessionCacheKey(): ?string
{
return 'cache';
}
public function getSessionTTL(): int
{
return 42;
}
}