| @@ 574-585 (lines=12) @@ | ||
| 571 | * |
|
| 572 | * @return \eZ\Publish\SPI\Persistence\Content\Relation\CreateStruct |
|
| 573 | */ |
|
| 574 | protected function getRelationCreateStructFixture() |
|
| 575 | { |
|
| 576 | $struct = new RelationCreateStruct(); |
|
| 577 | ||
| 578 | $struct->destinationContentId = 0; |
|
| 579 | $struct->sourceContentId = 0; |
|
| 580 | $struct->sourceContentVersionNo = 1; |
|
| 581 | $struct->sourceFieldDefinitionId = 1; |
|
| 582 | $struct->type = RelationValue::COMMON; |
|
| 583 | ||
| 584 | return $struct; |
|
| 585 | } |
|
| 586 | ||
| 587 | /** |
|
| 588 | * Returns a language handler mock. |
|
| @@ 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 | ||