@@ -113,7 +113,7 @@ |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
116 | - * @return PHPUnit_Framework_MockObject_MockObject|RequestMatcherInterface |
|
116 | + * @return RequestMatcherInterface |
|
117 | 117 | */ |
118 | 118 | protected function getRequestMatcherMock() |
119 | 119 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
162 | - * @return CsrfProviderInterface|PHPUnit_Framework_MockObject_MockObject |
|
162 | + * @return null|\Symfony\Component\Security\Csrf\CsrfTokenManagerInterface |
|
163 | 163 | */ |
164 | 164 | protected function getCsrfProviderMock() |
165 | 165 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
185 | - * @return PHPUnit_Framework_MockObject_MockObject|GetResponseEvent |
|
185 | + * @return null|EventDispatcherInterface |
|
186 | 186 | */ |
187 | 187 | protected function getEventMock($class = null) |
188 | 188 | { |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | } |
285 | 285 | |
286 | 286 | /** |
287 | - * @return PHPUnit_Framework_MockObject_MockObject|EventDispatcherInterface |
|
287 | + * @return EventDispatcherInterface |
|
288 | 288 | */ |
289 | 289 | protected function getEventDispatcherMock() |
290 | 290 | { |
@@ -61,6 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | + * @param string $class |
|
64 | 65 | * @return PHPUnit_Framework_MockObject_MockObject|$class |
65 | 66 | */ |
66 | 67 | protected function getEventMock($class) |
@@ -134,7 +135,6 @@ discard block |
||
134 | 135 | } |
135 | 136 | |
136 | 137 | /** |
137 | - * @param bool $csrfEnabled |
|
138 | 138 | * |
139 | 139 | * @return CsrfListener |
140 | 140 | */ |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $method |
|
74 | + */ |
|
72 | 75 | protected function onKernelViewIsNotRestRequest($method, GetResponseEvent $event) |
73 | 76 | { |
74 | 77 | $this->getVisitorDispatcherMock() |
@@ -88,6 +91,9 @@ discard block |
||
88 | 91 | $this->onKernelView('onKernelResultView', $this->getControllerResultEventMock()); |
89 | 92 | } |
90 | 93 | |
94 | + /** |
|
95 | + * @param string $method |
|
96 | + */ |
|
91 | 97 | protected function onKernelView($method, $event) |
92 | 98 | { |
93 | 99 | $this->getVisitorDispatcherMock() |
@@ -110,7 +116,7 @@ discard block |
||
110 | 116 | } |
111 | 117 | |
112 | 118 | /** |
113 | - * @return AcceptHeaderVisitorDispatcher|PHPUnit_Framework_MockObject_MockObject |
|
119 | + * @return AcceptHeaderVisitorDispatcher |
|
114 | 120 | */ |
115 | 121 | public function getVisitorDispatcherMock() |
116 | 122 | { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @return \Symfony\Cmf\Component\Routing\ChainRouter|\PHPUnit_Framework_MockObject_MockObject |
|
152 | + * @return \Symfony\Component\Routing\RouterInterface |
|
153 | 153 | */ |
154 | 154 | private function getRouterMock() |
155 | 155 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to delete a content type group |
88 | 88 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException If a to be deleted content type has instances |
89 | 89 | * |
90 | - * @param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $ContentTypeGroup |
|
90 | + * @param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup $contentTypeGroup |
|
91 | 91 | */ |
92 | 92 | public function deleteContentTypeGroup(ContentTypeGroup $contentTypeGroup); |
93 | 93 |
@@ -183,6 +183,9 @@ |
||
183 | 183 | return $this->createTestContent('eng-US', $fieldValues); |
184 | 184 | } |
185 | 185 | |
186 | + /** |
|
187 | + * @param string $initialLanguageCode |
|
188 | + */ |
|
186 | 189 | protected function updateTestContent($initialLanguageCode, array $fieldValues) |
187 | 190 | { |
188 | 191 | $repository = $this->getRepository(); |
@@ -215,7 +215,6 @@ |
||
215 | 215 | * |
216 | 216 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
217 | 217 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
218 | - * @param array $propertyNames |
|
219 | 218 | */ |
220 | 219 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array()) |
221 | 220 | { |
@@ -2737,7 +2737,7 @@ discard block |
||
2737 | 2737 | /** |
2738 | 2738 | * Test for the addRelation() method. |
2739 | 2739 | * |
2740 | - * @return \eZ\Publish\API\Repository\Values\Content\Content |
|
2740 | + * @return Relation[] |
|
2741 | 2741 | * |
2742 | 2742 | * @see \eZ\Publish\API\Repository\ContentService::addRelation() |
2743 | 2743 | * @depends eZ\Publish\API\Repository\Tests\ContentServiceTest::testPublishVersionFromContentDraft |
@@ -4554,7 +4554,7 @@ discard block |
||
4554 | 4554 | * given properties are available in $actualAliases and not more. |
4555 | 4555 | * |
4556 | 4556 | * @param array $expectedAliasProperties |
4557 | - * @param array $actualAliases |
|
4557 | + * @param URLAlias[] $actualAliases |
|
4558 | 4558 | */ |
4559 | 4559 | private function assertAliasesCorrect(array $expectedAliasProperties, array $actualAliases) |
4560 | 4560 | { |
@@ -4716,7 +4716,7 @@ discard block |
||
4716 | 4716 | /** |
4717 | 4717 | * Returns the default fixture of fields used in most tests. |
4718 | 4718 | * |
4719 | - * @return \eZ\Publish\API\Repository\Values\Content\Field[] |
|
4719 | + * @return Field[] |
|
4720 | 4720 | */ |
4721 | 4721 | private function createFieldsFixture() |
4722 | 4722 | { |