eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdaterTest::getToTypeFixture PHP Method

getToTypeFixture() protected method

Returns a fixture for the to Type.
protected getToTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type
return eZ\Publish\SPI\Persistence\Content\Type
    protected function getToTypeFixture()
    {
        $type = clone $this->getFromTypeFixture();
        unset($type->fieldDefinitions[0]);
        $fieldC = new Type\FieldDefinition();
        $fieldC->id = 3;
        $fieldC->fieldType = 'ezstring';
        $type->fieldDefinitions[] = $fieldC;
        return $type;
    }