eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\ContentUpdaterTest::getFromTypeFixture PHP Метод

getFromTypeFixture() защищенный Метод

Returns a fixture for the from Type.
protected getFromTypeFixture ( ) : eZ\Publish\SPI\Persistence\Content\Type
Результат eZ\Publish\SPI\Persistence\Content\Type
    protected function getFromTypeFixture()
    {
        $type = new Type();
        $fieldA = new Type\FieldDefinition();
        $fieldA->id = 1;
        $fieldA->fieldType = 'ezstring';
        $fieldB = new Type\FieldDefinition();
        $fieldB->id = 2;
        $fieldB->fieldType = 'ezstring';
        $type->fieldDefinitions = array($fieldA, $fieldB);
        return $type;
    }