use Shopware\Core\Test\Stub\Redis\RedisStub;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Adapter\Cache\InvalidatorStorage\RedisInvalidatorStorage
*/
class RedisInvalidatorStorageTest extends TestCase
{ public function testStorage(): void
{ $storage =
new RedisInvalidatorStorage(new RedisStub());
static::
assertSame($storage->
loadAndDelete(),
[]);
$storage->
store(['foo', 'bar'
]);
static::
assertSame(['bar', 'foo'
],
$storage->
loadAndDelete());
static::
assertSame([],
$storage->
loadAndDelete());
}}