eZ\Publish\Core\Persistence\Legacy\Tests\Content\MapperTest::getCreateStructFixture PHP Method

getCreateStructFixture() protected method

Returns a eZ\Publish\SPI\Persistence\Content\CreateStruct fixture.
protected getCreateStructFixture ( ) : eZ\Publish\SPI\Persistence\Content\CreateStruct
return eZ\Publish\SPI\Persistence\Content\CreateStruct
    protected function getCreateStructFixture()
    {
        $struct = new CreateStruct();
        $struct->name = 'Content name';
        $struct->typeId = 23;
        $struct->sectionId = 42;
        $struct->ownerId = 13;
        $struct->initialLanguageId = 2;
        $struct->locations = array(new LocationCreateStruct(array('parentId' => 2)), new LocationCreateStruct(array('parentId' => 3)), new LocationCreateStruct(array('parentId' => 4)));
        $struct->fields = array(new Field());
        return $struct;
    }