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

testCreateNewFieldsUpdatingStorageHandler() public method

    public function testCreateNewFieldsUpdatingStorageHandler()
    {
        $fieldHandler = $this->getFieldHandler();
        $contentGatewayMock = $this->getContentGatewayMock();
        $mapperMock = $this->getMapperMock();
        $this->assertCreateNewFields(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->createNewFields($this->getContentPartialFieldsFixture(), $this->getContentTypeFixture());
    }