@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * Get initial field data for valid object creation. |
| 111 | 111 | * |
| 112 | - * @return mixed |
|
| 112 | + * @return TimeValue |
|
| 113 | 113 | */ |
| 114 | 114 | public function getValidCreationFieldData() |
| 115 | 115 | { |
@@ -268,6 +268,9 @@ discard block |
||
| 268 | 268 | $this->assertContainsEzRemoteInvalidLinkError($contentRemoteId, $errors); |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | + /** |
|
| 272 | + * @param integer $locationId |
|
| 273 | + */ |
|
| 271 | 274 | private function assertContainsEzLocationInvalidLinkError($locationId, array $errors) |
| 272 | 275 | { |
| 273 | 276 | $format = 'Invalid link "ezlocation://%d": target location cannot be found'; |
@@ -275,6 +278,9 @@ discard block |
||
| 275 | 278 | $this->assertContains(sprintf($format, $locationId), $errors); |
| 276 | 279 | } |
| 277 | 280 | |
| 281 | + /** |
|
| 282 | + * @param integer $contentId |
|
| 283 | + */ |
|
| 278 | 284 | private function assertContainsEzContentInvalidLinkError($contentId, array $errors) |
| 279 | 285 | { |
| 280 | 286 | $format = 'Invalid link "ezcontent://%d": target content cannot be found'; |
@@ -282,6 +288,9 @@ discard block |
||
| 282 | 288 | $this->assertContains(sprintf($format, $contentId), $errors); |
| 283 | 289 | } |
| 284 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $contentId |
|
| 293 | + */ |
|
| 285 | 294 | private function assertContainsEzRemoteInvalidLinkError($contentId, array $errors) |
| 286 | 295 | { |
| 287 | 296 | $format = 'Invalid link "ezremote://%s": target content cannot be found'; |
@@ -303,6 +312,9 @@ discard block |
||
| 303 | 312 | ->getMock(); |
| 304 | 313 | } |
| 305 | 314 | |
| 315 | + /** |
|
| 316 | + * @param string $scheme |
|
| 317 | + */ |
|
| 306 | 318 | private function createInputDocument($scheme, $id) |
| 307 | 319 | { |
| 308 | 320 | $url = $scheme . '://' . $id; |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | abstract class BaseURLServiceTest extends BaseTest |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @param integer $exectedTotalCount |
|
| 20 | + */ |
|
| 18 | 21 | protected function doTestFindUrls(URLQuery $query, array $expectedUrls, $exectedTotalCount = null, $ignoreOrder = true) |
| 19 | 22 | { |
| 20 | 23 | $repository = $this->getRepository(); |
@@ -32,6 +35,9 @@ discard block |
||
| 32 | 35 | $this->assertSearchResultItems($searchResult, $expectedUrls, $ignoreOrder); |
| 33 | 36 | } |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @param boolean $ignoreOrder |
|
| 40 | + */ |
|
| 35 | 41 | protected function assertSearchResultItems(SearchResult $searchResult, array $expectedUrls, $ignoreOrder) |
| 36 | 42 | { |
| 37 | 43 | $this->assertCount(count($expectedUrls), $searchResult->items); |
@@ -132,7 +132,6 @@ |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param bool $csrfEnabled |
|
| 136 | 135 | * |
| 137 | 136 | * @return CsrfListener |
| 138 | 137 | */ |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | /** |
| 67 | 67 | * Sets the complete list of view providers. |
| 68 | 68 | * |
| 69 | - * @param array $viewProviders |
|
| 69 | + * @param \PHPUnit\Framework\MockObject\MockObject $viewProviders |
|
| 70 | 70 | */ |
| 71 | 71 | public function setViewProviders(array $viewProviders) |
| 72 | 72 | { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | /** |
| 87 | 87 | * @dataProvider indexingProvider |
| 88 | 88 | * |
| 89 | - * @param array|null $value |
|
| 89 | + * @param array|null $values |
|
| 90 | 90 | * @param \Psr\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject|null $logger |
| 91 | 91 | */ |
| 92 | 92 | public function testIndexing(array $values = null, $logger = null) |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @return MockObject|RequestMatcherInterface |
|
| 114 | + * @return RequestMatcherInterface |
|
| 115 | 115 | */ |
| 116 | 116 | protected function getRequestMatcherMock() |
| 117 | 117 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @return CsrfProviderInterface|MockObject |
|
| 171 | + * @return null|CsrfTokenManagerInterface |
|
| 172 | 172 | */ |
| 173 | 173 | protected function getCsrfProviderMock() |
| 174 | 174 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | /** |
| 194 | - * @return MockObject|GetResponseEvent |
|
| 194 | + * @return null|EventDispatcherInterface |
|
| 195 | 195 | */ |
| 196 | 196 | protected function getEventMock($class = null) |
| 197 | 197 | { |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
| 296 | - * @return MockObject|EventDispatcherInterface |
|
| 296 | + * @return EventDispatcherInterface |
|
| 297 | 297 | */ |
| 298 | 298 | protected function getEventDispatcherMock() |
| 299 | 299 | { |
@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | ); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $method |
|
| 72 | + */ |
|
| 70 | 73 | protected function onKernelViewIsNotRestRequest($method, GetResponseEvent $event) |
| 71 | 74 | { |
| 72 | 75 | $this->getVisitorDispatcherMock() |
@@ -86,6 +89,9 @@ discard block |
||
| 86 | 89 | $this->onKernelView('onKernelResultView', $this->getControllerResultEventMock()); |
| 87 | 90 | } |
| 88 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $method |
|
| 94 | + */ |
|
| 89 | 95 | protected function onKernelView($method, $event) |
| 90 | 96 | { |
| 91 | 97 | $this->getVisitorDispatcherMock() |
@@ -108,7 +114,7 @@ discard block |
||
| 108 | 114 | } |
| 109 | 115 | |
| 110 | 116 | /** |
| 111 | - * @return AcceptHeaderVisitorDispatcher|MockObject |
|
| 117 | + * @return AcceptHeaderVisitorDispatcher |
|
| 112 | 118 | */ |
| 113 | 119 | public function getVisitorDispatcherMock() |
| 114 | 120 | { |