Neos\Cache\Tests\Unit\Frontend\VariableFrontendTest::getFetchesArrayValueFromBackend PHP Method

getFetchesArrayValueFromBackend() public method

    public function getFetchesArrayValueFromBackend()
    {
        $theArray = ['Just some value', 'and another one.'];
        $backend = $this->prepareDefaultBackend();
        $backend->expects($this->once())->method('get')->will($this->returnValue(serialize($theArray)));
        $cache = new VariableFrontend('VariableFrontend', $backend);
        $this->assertEquals($theArray, $cache->get('VariableCacheTest'), 'The returned value was not the expected unserialized array.');
    }