public function testUpdateFieldsForInitialLanguageUpdatingStorageHandler()
{
$fieldHandler = $this->getFieldHandler();
$mapperMock = $this->getMapperMock();
$contentGatewayMock = $this->getContentGatewayMock();
$this->assertUpdateFieldsForInitialLanguage(true);
$mapperMock->expects($this->exactly(6))->method('convertToStorageValue')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'))->will($this->returnValue(new StorageFieldValue()));
$contentGatewayMock->expects($this->exactly(3))->method('updateField')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'), $this->isInstanceOf('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue'));
$struct = new UpdateStruct();
// Language with id=2 is eng-US
$struct->initialLanguageId = 2;
$fieldHandler->updateFields($this->getContentSingleLanguageFixture(), $struct, $this->getContentTypeFixture());
}