Neos\Cache\Tests\Unit\Backend\RedisBackendTest::setUsesProvidedLifetime PHP Method

setUsesProvidedLifetime() public method

    public function setUsesProvidedLifetime()
    {
        $defaultLifetime = 3600;
        $this->backend->setDefaultLifetime($defaultLifetime);
        $expected = ['ex' => 1600];
        $this->redis->expects($this->any())->method('multi')->willReturn($this->redis);
        $this->redis->expects($this->once())->method('set')->with($this->anything(), $this->anything(), $expected)->willReturn($this->redis);
        $this->backend->set('foo', 'bar', [], 1600);
    }