@@ -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 | { |
@@ -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); |
@@ -212,7 +212,6 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
214 | 214 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
215 | - * @param array $propertyNames |
|
216 | 215 | */ |
217 | 216 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array()) |
218 | 217 | { |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | /** |
475 | 474 | * Create role of a given name with the given policies described by an array. |
476 | 475 | * |
477 | - * @param $roleName |
|
476 | + * @param string $roleName |
|
478 | 477 | * @param array $policiesData [['module' => 'content', 'function' => 'read', 'limitations' => []] |
479 | 478 | * |
480 | 479 | * @return \eZ\Publish\API\Repository\Values\User\Role |
@@ -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 | { |