eZ\Publish\Core\Persistence\Legacy\Tests\Content\StorageHandlerTest::testDeleteFieldData PHP Method

testDeleteFieldData() public method

public testDeleteFieldData ( )
    public function testDeleteFieldData()
    {
        $storageMock = $this->getStorageMock();
        $storageRegistryMock = $this->getStorageRegistryMock();
        $storageMock->expects($this->once())->method('deleteFieldData')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\VersionInfo'), $this->equalTo(array(1, 2, 3)), $this->equalTo($this->getContextMock()));
        $storageRegistryMock->expects($this->once())->method('getStorage')->with($this->equalTo('foobar'))->will($this->returnValue($storageMock));
        $handler = $this->getStorageHandler();
        $handler->deleteFieldData('foobar', new VersionInfo(), array(1, 2, 3));
    }