@@ -247,7 +247,7 @@ |
||
247 | 247 | /** |
248 | 248 | * Get the role service mock object. |
249 | 249 | * |
250 | - * @return \eZ\Publish\API\Repository\RoleService |
|
250 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
251 | 251 | */ |
252 | 252 | protected function getRoleServiceMock() |
253 | 253 | { |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | /** |
478 | 478 | * Get the user service mock object. |
479 | 479 | * |
480 | - * @return \eZ\Publish\API\Repository\UserService |
|
480 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
481 | 481 | */ |
482 | 482 | protected function getUserServiceMock() |
483 | 483 | { |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | /** |
511 | 511 | * Get the content type service mock object. |
512 | 512 | * |
513 | - * @return \eZ\Publish\API\Repository\ContentTypeService |
|
513 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
514 | 514 | */ |
515 | 515 | protected function getContentTypeServiceMock() |
516 | 516 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Gets the exception. |
38 | 38 | * |
39 | - * @return \Exception |
|
39 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
40 | 40 | */ |
41 | 41 | protected function getException() |
42 | 42 | { |
@@ -100,6 +100,9 @@ |
||
100 | 100 | ); |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @return DeprecationWarnerInterface |
|
105 | + */ |
|
103 | 106 | public function getDeprecationWarnerMock() |
104 | 107 | { |
105 | 108 | if (!isset($this->deprecationWarnerMock)) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | /** |
64 | 64 | * Get the Request parser. |
65 | 65 | * |
66 | - * @return \eZ\Publish\Core\REST\Common\RequestParser|\PHPUnit\Framework\MockObject\MockObject |
|
66 | + * @return RequestParser |
|
67 | 67 | */ |
68 | 68 | protected function getRequestParserMock() |
69 | 69 | { |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | self::assertNotNull($result); |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param CachedValue $value |
|
125 | + */ |
|
123 | 126 | protected function visit($value) |
124 | 127 | { |
125 | 128 | $this->getVisitorMock()->expects($this->once())->method('visitValueObject')->with($value->value); |
@@ -158,7 +161,7 @@ discard block |
||
158 | 161 | } |
159 | 162 | |
160 | 163 | /** |
161 | - * @return ConfigResolverInterface|MockObject |
|
164 | + * @return ConfigResolverInterface |
|
162 | 165 | */ |
163 | 166 | protected function getConfigProviderMock() |
164 | 167 | { |
@@ -769,7 +769,7 @@ |
||
769 | 769 | } |
770 | 770 | |
771 | 771 | /** |
772 | - * @param array $methods |
|
772 | + * @param string[] $methods |
|
773 | 773 | * |
774 | 774 | * @return \eZ\Publish\Core\Search\Common\FieldNameResolver|\PHPUnit\Framework\MockObject\MockObject |
775 | 775 | */ |
@@ -85,6 +85,10 @@ |
||
85 | 85 | return new URLService($innerService, $dispatcher); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $id |
|
90 | + * @param string $url |
|
91 | + */ |
|
88 | 92 | private function getApiUrl($id = null, $url = null, $isValid = false) |
89 | 93 | { |
90 | 94 | return new URL([ |
@@ -171,7 +171,7 @@ |
||
171 | 171 | * @param \eZ\Publish\Core\SignalSlot\LanguageService $languageService |
172 | 172 | * @param \eZ\Publish\Core\SignalSlot\URLService $urlService |
173 | 173 | * @param \eZ\Publish\Core\SignalSlot\BookmarkService $bookmarkService |
174 | - * @param \eZ\Publish\API\Repository\NotificationService $notificationService |
|
174 | + * @param \PHPUnit\Framework\MockObject\MockObject $notificationService |
|
175 | 175 | * @param \eZ\Publish\Core\SignalSlot\UserPreferenceService $userPreferenceService |
176 | 176 | */ |
177 | 177 | public function __construct( |