Bravo3\Orm\Tests\Drivers\Redis\RedisDriverTest::testSingleSet PHP Method

testSingleSet() public method

public testSingleSet ( )
    public function testSingleSet()
    {
        $driver = $this->getRedisDriver();
        $key = 'test:single:' . rand(10000, 99999);
        $driver->persist($key, new SerialisedData('xxxx', 'bar'));
        $driver->flush();
        $this->assertEquals('bar', $driver->retrieve($key)->getData());
        $this->assertEquals('xxxx', $driver->retrieve($key)->getSerialisationCode());
    }