| @@ 87-104 (lines=18) @@ | ||
| 84 | * |
|
| 85 | * @return \eZ\Publish\API\Repository\SectionService |
|
| 86 | */ |
|
| 87 | protected function getSectionServiceMock() |
|
| 88 | { |
|
| 89 | $sectionServiceMock = $this->getMock( |
|
| 90 | 'eZ\\Publish\\Core\\Repository\\SectionService', |
|
| 91 | array(), |
|
| 92 | array(), |
|
| 93 | '', |
|
| 94 | false |
|
| 95 | ); |
|
| 96 | ||
| 97 | $sectionServiceMock->expects($this->any()) |
|
| 98 | ->method('newSectionCreateStruct') |
|
| 99 | ->will( |
|
| 100 | $this->returnValue(new SectionCreateStruct()) |
|
| 101 | ); |
|
| 102 | ||
| 103 | return $sectionServiceMock; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| @@ 72-89 (lines=18) @@ | ||
| 69 | * |
|
| 70 | * @return \eZ\Publish\API\Repository\SectionService |
|
| 71 | */ |
|
| 72 | protected function getSectionServiceMock() |
|
| 73 | { |
|
| 74 | $sectionServiceMock = $this->getMock( |
|
| 75 | 'eZ\\Publish\\Core\\Repository\\SectionService', |
|
| 76 | array(), |
|
| 77 | array(), |
|
| 78 | '', |
|
| 79 | false |
|
| 80 | ); |
|
| 81 | ||
| 82 | $sectionServiceMock->expects($this->any()) |
|
| 83 | ->method('newSectionCreateStruct') |
|
| 84 | ->will( |
|
| 85 | $this->returnValue(new SectionCreateStruct()) |
|
| 86 | ); |
|
| 87 | ||
| 88 | return $sectionServiceMock; |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||