| @@ 2045-2056 (lines=12) @@ | ||
| 2042 | * |
|
| 2043 | * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct |
|
| 2044 | */ |
|
| 2045 | protected function getRelationCreateStructFixture() |
|
| 2046 | { |
|
| 2047 | $struct = new RelationCreateStruct(); |
|
| 2048 | ||
| 2049 | $struct->destinationContentId = 1; |
|
| 2050 | $struct->sourceContentId = 1; |
|
| 2051 | $struct->sourceContentVersionNo = 1; |
|
| 2052 | $struct->sourceFieldDefinitionId = 0; |
|
| 2053 | $struct->type = RelationValue::COMMON; |
|
| 2054 | ||
| 2055 | return $struct; |
|
| 2056 | } |
|
| 2057 | } |
|
| 2058 | ||
| @@ 597-608 (lines=12) @@ | ||
| 594 | * |
|
| 595 | * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct |
|
| 596 | */ |
|
| 597 | protected function getRelationCreateStructFixture() |
|
| 598 | { |
|
| 599 | $struct = new RelationCreateStruct(); |
|
| 600 | ||
| 601 | $struct->destinationContentId = 0; |
|
| 602 | $struct->sourceContentId = 0; |
|
| 603 | $struct->sourceContentVersionNo = 1; |
|
| 604 | $struct->sourceFieldDefinitionId = 1; |
|
| 605 | $struct->type = RelationValue::COMMON; |
|
| 606 | ||
| 607 | return $struct; |
|
| 608 | } |
|
| 609 | ||
| 610 | /** |
|
| 611 | * Returns a language handler mock. |
|