diff --git a/tests/Predis/Command/Redis/CLIENT_Test.php b/tests/Predis/Command/Redis/CLIENT_Test.php index 41fe4176f..d532b9047 100644 --- a/tests/Predis/Command/Redis/CLIENT_Test.php +++ b/tests/Predis/Command/Redis/CLIENT_Test.php @@ -172,6 +172,18 @@ public function testSetsNameOfConnection(): void $this->assertEquals($expectedConnectionName, $redis->client('GETNAME')); } + /** + * @group connected + * @requiresRedisVersion >= 7.0.0 + */ + public function testSetNoEvictModeForCurrentConnection(): void + { + $redis = $this->getClient(); + + $this->assertEquals('OK', $redis->client('NO-EVICT', 'ON')); + $this->assertEquals('OK', $redis->client('NO-EVICT', 'OFF')); + } + /** * @return array */