eZ\Publish\Core\Persistence\Legacy\Tests\Content\FieldHandlerTest::testUpdateFieldsExistingLanguages PHP Method

testUpdateFieldsExistingLanguages() public method

    public function testUpdateFieldsExistingLanguages()
    {
        $fieldHandler = $this->getFieldHandler();
        $mapperMock = $this->getMapperMock();
        $contentGatewayMock = $this->getContentGatewayMock();
        $this->assertUpdateFieldsExistingLanguages(false);
        $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(6))->method('updateField')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'), $this->isInstanceOf('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue'));
        $fieldHandler->updateFields($this->getContentFixture(), $this->getUpdateStructFixture(), $this->getContentTypeFixture());
    }