public function testCreateExistingFieldsInNewVersionUpdatingStorageHandler()
{
$fieldHandler = $this->getFieldHandler();
$contentGatewayMock = $this->getContentGatewayMock();
$mapperMock = $this->getMapperMock();
$this->assertCreateExistingFieldsInNewVersion(true);
$mapperMock->expects($this->exactly(12))->method('convertToStorageValue')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'))->will($this->returnValue(new StorageFieldValue()));
$contentGatewayMock->expects($this->exactly(6))->method('updateField')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'), $this->isInstanceOf('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue'));
$fieldHandler->createExistingFieldsInNewVersion($this->getContentFixture());
}