@@ -9,10 +9,9 @@ |
||
9 | 9 | namespace eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests; |
10 | 10 | |
11 | 11 | use eZ\Publish\Core\MVC\Symfony\SiteAccess; |
12 | -use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\URIElement; |
|
12 | +use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\URIElement as URIElementMatcher; |
|
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use eZ\Publish\Core\MVC\Symfony\SiteAccess\Router; |
15 | -use eZ\Publish\Core\MVC\Symfony\SiteAccess\Matcher\URIElement as URIElementMatcher; |
|
16 | 15 | use eZ\Publish\Core\MVC\Symfony\Routing\SimplifiedRequest; |
17 | 16 | use eZ\Publish\Core\MVC\Symfony\SiteAccess\MatcherBuilder; |
18 | 17 | use Psr\Log\LoggerInterface; |
@@ -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)) { |
@@ -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) |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | private $fieldTypeUnderTest; |
26 | 26 | |
27 | 27 | /** |
28 | - * @return \eZ\Publish\Core\Persistence\TransformationProcessor|\PHPUnit\Framework\MockObject\MockObject |
|
28 | + * @return TransformationProcessor |
|
29 | 29 | */ |
30 | 30 | protected function getTransformationProcessorMock() |
31 | 31 | { |
@@ -682,7 +682,6 @@ discard block |
||
682 | 682 | } |
683 | 683 | |
684 | 684 | /** |
685 | - * @param mixed $inputValue |
|
686 | 685 | * @param array $expectedResult |
687 | 686 | * |
688 | 687 | * @dataProvider provideInputForFromHash |
@@ -830,7 +829,6 @@ discard block |
||
830 | 829 | } |
831 | 830 | |
832 | 831 | /** |
833 | - * @param mixed $inputConfiguration |
|
834 | 832 | * |
835 | 833 | * @dataProvider provideValidFieldSettings |
836 | 834 | */ |
@@ -858,7 +856,6 @@ discard block |
||
858 | 856 | } |
859 | 857 | |
860 | 858 | /** |
861 | - * @param mixed $inputConfiguration |
|
862 | 859 | * |
863 | 860 | * @dataProvider provideValidFieldSettings |
864 | 861 | */ |
@@ -8,10 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | namespace eZ\Publish\Core\FieldType\Tests; |
10 | 10 | |
11 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition; |
|
11 | +use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition as APIFieldDefinition; |
|
12 | 12 | use PHPUnit\Framework\TestCase; |
13 | 13 | use Exception; |
14 | -use eZ\Publish\API\Repository\Values\ContentType\FieldDefinition as APIFieldDefinition; |
|
15 | 14 | use eZ\Publish\SPI\FieldType\Value as SPIValue; |
16 | 15 | use eZ\Publish\Core\Persistence\TransformationProcessor; |
17 | 16 | use eZ\Publish\SPI\FieldType\ValidationError; |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | } |
356 | 356 | |
357 | 357 | /** |
358 | - * @return array |
|
358 | + * @return string[] |
|
359 | 359 | */ |
360 | 360 | protected function getContext() |
361 | 361 | { |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | protected $loggerMock; |
369 | 369 | |
370 | 370 | /** |
371 | - * @return \Psr\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject |
|
371 | + * @return integer |
|
372 | 372 | */ |
373 | 373 | protected function getLoggerMock() |
374 | 374 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @return \eZ\Publish\Core\Repository\Repository|\PHPUnit\Framework\MockObject\MockObject |
|
101 | + * @return \eZ\Publish\API\Repository\Repository |
|
102 | 102 | */ |
103 | 103 | private function getRepositoryMock() |
104 | 104 | { |
@@ -1396,7 +1396,7 @@ discard block |
||
1396 | 1396 | } |
1397 | 1397 | |
1398 | 1398 | /** |
1399 | - * @param array $methods |
|
1399 | + * @param string[] $methods |
|
1400 | 1400 | * |
1401 | 1401 | * @return \eZ\Publish\Core\MVC\Symfony\FieldType\RichText\Renderer|\PHPUnit\Framework\MockObject\MockObject |
1402 | 1402 | */ |
@@ -1483,6 +1483,9 @@ discard block |
||
1483 | 1483 | return $this->createMock(LoggerInterface::class); |
1484 | 1484 | } |
1485 | 1485 | |
1486 | + /** |
|
1487 | + * @param integer $mainLocationId |
|
1488 | + */ |
|
1486 | 1489 | protected function getContentMock($mainLocationId) |
1487 | 1490 | { |
1488 | 1491 | $contentInfoMock = $this->createMock(ContentInfo::class); |
@@ -169,7 +169,6 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @param array $properties |
|
173 | 172 | * |
174 | 173 | * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\MVC\Symfony\View\ContentView |
175 | 174 | */ |