Skip to content
Snippets Groups Projects
Commit 24d856e6 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix

parent ecb5779c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ use PHPUnit\Framework\TestCase;
use SimpleSAML\Configuration;
use SimpleSAML\Store;
use SimpleSAML\Store\StoreFactory;
use SimpleSAML\Store\StoreInterface;
/**
* Tests for the SQL store.
......@@ -21,8 +20,8 @@ use SimpleSAML\Store\StoreInterface;
*/
class SQLStoreTest extends TestCase
{
/** @var \SimpleSAML\Store\StoreInterface $store */
private StoreInterface $store;
/** @var \SimpleSAML\Store\SQLStore $store */
private Store\SQLStore $store;
/**
......
......@@ -77,6 +77,7 @@ class StoreFactoryTest extends TestCase
'store.redis.prefix' => 'phpunit_',
], '[ARRAY]', 'simplesaml');
/** @psalm-var \SimpleSAML\Store\RedisStore $store */
$store = StoreFactory::getInstance();
$store->redis = $this->getMockBuilder(Client::class)
->setMethods(['get', 'set', 'setex', 'del', 'disconnect', '__destruct'])
......@@ -151,7 +152,7 @@ class StoreFactoryTest extends TestCase
/**
* @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreFactory $service
* @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreInterface $service
* @param class-string $className
*/
protected function clearInstance($service, string $className): void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment