@@ -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 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @return \Symfony\Cmf\Component\Routing\ChainRouter|\PHPUnit\Framework\MockObject\MockObject |
|
151 | + * @return \Symfony\Component\Routing\RouterInterface |
|
152 | 152 | */ |
153 | 153 | private function getRouterMock() |
154 | 154 | { |
@@ -60,9 +60,9 @@ |
||
60 | 60 | |
61 | 61 | /** |
62 | 62 | * @param NodeDefinition $node |
63 | - * @param $name |
|
63 | + * @param string $name |
|
64 | 64 | * @param string $info block info line |
65 | - * @param ConfigurationFactory[]|ArrayObject $factories |
|
65 | + * @param ArrayObject $factories |
|
66 | 66 | */ |
67 | 67 | private function addHandlersSection(NodeDefinition $node, $name, $info, ArrayObject $factories) |
68 | 68 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @param array $mockedMethods |
|
54 | + * @param string[] $mockedMethods |
|
55 | 55 | * |
56 | 56 | * @return \PHPUnit\Framework\MockObject\MockObject|DefaultRouter |
57 | 57 | */ |
@@ -318,6 +318,9 @@ discard block |
||
318 | 318 | ]; |
319 | 319 | } |
320 | 320 | |
321 | + /** |
|
322 | + * @param string $uri |
|
323 | + */ |
|
321 | 324 | private function getExpectedRequestContext($uri) |
322 | 325 | { |
323 | 326 | $requestContext = new RequestContext(); |
@@ -17,9 +17,8 @@ |
||
17 | 17 | use eZ\Publish\Core\Repository\Values\ContentType\ContentType; |
18 | 18 | use eZ\Publish\Core\REST\Common\Tests\Output\ValueObjectVisitorBaseTest; |
19 | 19 | use eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor; |
20 | -use eZ\Publish\Core\Repository\Values\Content; |
|
21 | -use eZ\Publish\Core\REST\Server\Values\RestExecutedView; |
|
22 | 20 | use eZ\Publish\Core\Repository\Values\Content as ApiValues; |
21 | +use eZ\Publish\Core\REST\Server\Values\RestExecutedView; |
|
23 | 22 | |
24 | 23 | class RestExecutedViewTest extends ValueObjectVisitorBaseTest |
25 | 24 | { |