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

setPassesSerializedStringToBackend() public method

    public function setPassesSerializedStringToBackend()
    {
        $theString = 'Just some value';
        $backend = $this->prepareDefaultBackend();
        $backend->expects($this->once())->method('set')->with($this->equalTo('VariableCacheTest'), $this->equalTo(serialize($theString)));
        $cache = new VariableFrontend('VariableFrontend', $backend);
        $cache->set('VariableCacheTest', $theString);
    }