diff --git a/tests/Integration/Application/ReadModel/QueryHandlers/AbstractQueryHandlerTest.php b/tests/Integration/Application/ReadModel/QueryHandlers/AbstractQueryHandlerTest.php index b7ebc1c..bd68c30 100644 --- a/tests/Integration/Application/ReadModel/QueryHandlers/AbstractQueryHandlerTest.php +++ b/tests/Integration/Application/ReadModel/QueryHandlers/AbstractQueryHandlerTest.php @@ -11,6 +11,8 @@ use hollodotme\Readis\Interfaces\ProvidesInfrastructure; use PHPUnit\Framework\TestCase; use Redis; +use function base64_encode; +use function count; abstract class AbstractQueryHandlerTest extends TestCase { @@ -54,6 +56,8 @@ protected function setUp() : void /** @noinspection PhpMethodParametersCountMismatchInspection */ /** @noinspection PhpParamsInspection */ $this->redis->rawCommand( 'PFADD', 'hyperLogLog', 'a', 'b', 'c', 'd', 'e', 'f' ); + + $this->redis->set( 'base64', 'base64:' . base64_encode( 'Test-Data' ) ); } protected function tearDown() : void @@ -66,6 +70,7 @@ protected function tearDown() : void * @param string $serverKey * * @throws NoServersConfigured + * @throws \PHPUnit\Framework\MockObject\RuntimeException * @return ProvidesInfrastructure * @throws ServerConfigNotFound */ diff --git a/tests/Integration/Application/ReadModel/QueryHandlers/FindKeysInDatabaseQueryHandlerTest.php b/tests/Integration/Application/ReadModel/QueryHandlers/FindKeysInDatabaseQueryHandlerTest.php index 3b4e794..5f45d55 100644 --- a/tests/Integration/Application/ReadModel/QueryHandlers/FindKeysInDatabaseQueryHandlerTest.php +++ b/tests/Integration/Application/ReadModel/QueryHandlers/FindKeysInDatabaseQueryHandlerTest.php @@ -52,7 +52,7 @@ public function keySearchProvider() : array 'database' => 0, 'searchPattern' => '*', 'limit' => null, - 'expectedKeyCount' => 7, + 'expectedKeyCount' => 8, ], [ 'serverKey' => '0', @@ -66,7 +66,7 @@ public function keySearchProvider() : array 'database' => 0, 'searchPattern' => '*as*', 'limit' => null, - 'expectedKeyCount' => 1, + 'expectedKeyCount' => 2, ], [ 'serverKey' => '0',