public function testUpdateFieldDefinition()
{
$mapperMock = $this->getMapperMock(array('toStorageFieldDefinition'));
$mapperMock->expects($this->once())->method('toStorageFieldDefinition')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\FieldDefinition'), $this->isInstanceOf('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldDefinition'));
$gatewayMock = $this->getGatewayMock();
$gatewayMock->expects($this->once())->method('updateFieldDefinition')->with($this->equalTo(23), $this->equalTo(1), $this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Type\\FieldDefinition'));
$fieldDef = new FieldDefinition();
$handler = $this->getHandler();
$res = $handler->updateFieldDefinition(23, 1, $fieldDef);
$this->assertNull($res);
}