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

testCreateNewFieldsForMainLanguage() public method

    public function testCreateNewFieldsForMainLanguage()
    {
        $fieldHandler = $this->getFieldHandler();
        $mapperMock = $this->getMapperMock();
        $this->assertCreateNewFieldsForMainLanguage(false);
        $mapperMock->expects($this->exactly(3))->method('convertToStorageValue')->with($this->isInstanceOf('eZ\\Publish\\SPI\\Persistence\\Content\\Field'))->will($this->returnValue(new StorageFieldValue()));
        $fieldHandler->createNewFields($this->getContentNoFieldsFixture(), $this->getContentTypeFixture());
    }