Skip to content

Commit

Permalink
qa: make RedisOptions tests pass
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed May 21, 2024
1 parent eb21c5e commit b5f57c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
</PossiblyNullReference>
<PossiblyUnusedReturnValue>
<code>Redis</code>
<code>bool</code>
</PossiblyUnusedReturnValue>
<PropertyNotSetInConstructor>
<code>Redis</code>
Expand Down Expand Up @@ -218,9 +217,6 @@
<code><![CDATA[$this->storage->getMetadata($key)['ttl']]]></code>
<code><![CDATA[$this->storage->getMetadata($key)['ttl']]]></code>
</PossiblyInvalidArrayAccess>
<RedundantConditionGivenDocblockType>
<code><![CDATA[$this->storage]]></code>
</RedundantConditionGivenDocblockType>
<UndefinedMethod>
<code><![CDATA[$redis->info()]]></code>
</UndefinedMethod>
Expand Down
1 change: 0 additions & 1 deletion test/integration/Laminas/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use LaminasTest\Cache\Storage\Adapter\AbstractCommonAdapterTest;
use PHPUnit\Framework\MockObject\MockObject;
use Redis as RedisResource;
use Throwable;

use function ceil;
use function count;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/RedisOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class RedisOptionsTest extends AbstractAdapterOptionsTest
{
protected function createAdapterOptions(): AdapterOptions
{
return new RedisOptions();
return new RedisOptions(['server' => ['host' => 'localhost']]);
}

public function testGetSetNamespace(): void
Expand Down

0 comments on commit b5f57c8

Please sign in to comment.