@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return \Doctrine\ORM\EntityManager |
|
42 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
43 | 43 | */ |
44 | 44 | protected function getMockedEntityManager() |
45 | 45 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return \Doctrine\ORM\EntityManager |
|
42 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
43 | 43 | */ |
44 | 44 | protected function getMockedEntityManager() |
45 | 45 | { |
@@ -258,6 +258,9 @@ |
||
258 | 258 | $this->importer = $importer; |
259 | 259 | } |
260 | 260 | |
261 | + /** |
|
262 | + * @param ImportCommand $importCommand |
|
263 | + */ |
|
261 | 264 | private function importSf4TranslationFiles($importCommand) |
262 | 265 | { |
263 | 266 | $finder = $this->translationFileExplorer->find($this->kernel->getProjectDir(), $this->determineLocalesToImport($importCommand), 'translations'); |
@@ -29,6 +29,10 @@ |
||
29 | 29 | /** @var array */ |
30 | 30 | private $entityChangeSet; |
31 | 31 | |
32 | + /** |
|
33 | + * @param \PHPUnit\Framework\MockObject\MockObject $nodePagesConfiguration |
|
34 | + * @param \PHPUnit\Framework\MockObject\MockObject $em |
|
35 | + */ |
|
32 | 36 | public function __construct(/* NodePagesConfiguration */ |
33 | 37 | $nodePagesConfiguration, /* EntityManagerInterface */ |
34 | 38 | $em = null) |
@@ -146,6 +146,9 @@ discard block |
||
146 | 146 | $listener = new NodeIndexUpdateEventListener($this->getContainer($this->getSearchConfiguration(false)), $em); |
147 | 147 | } |
148 | 148 | |
149 | + /** |
|
150 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
151 | + */ |
|
149 | 152 | private function getContainer($searchConfigMock) |
150 | 153 | { |
151 | 154 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -160,6 +163,9 @@ discard block |
||
160 | 163 | return $container; |
161 | 164 | } |
162 | 165 | |
166 | + /** |
|
167 | + * @param boolean $expectCall |
|
168 | + */ |
|
163 | 169 | private function getSearchConfiguration($expectCall) |
164 | 170 | { |
165 | 171 | $searchConfig = $this->createMock(NodePagesConfiguration::class); |
@@ -380,6 +380,9 @@ |
||
380 | 380 | return $request; |
381 | 381 | } |
382 | 382 | |
383 | + /** |
|
384 | + * @param string $uri |
|
385 | + */ |
|
383 | 386 | private function getRequestWithOverride($uri) |
384 | 387 | { |
385 | 388 | $session = new Session(new MockArraySessionStorage()); |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | /** |
181 | 181 | * @param $request |
182 | - * @param null $nodeTranslation |
|
182 | + * @param NodeTranslation $nodeTranslation |
|
183 | 183 | * |
184 | 184 | * @return Container |
185 | 185 | */ |
@@ -243,6 +243,9 @@ discard block |
||
243 | 243 | return $request; |
244 | 244 | } |
245 | 245 | |
246 | + /** |
|
247 | + * @param NodeTranslation $nodeTranslation |
|
248 | + */ |
|
246 | 249 | private function getEntityManager($nodeTranslation = null) |
247 | 250 | { |
248 | 251 | $em = $this->createMock('Doctrine\ORM\EntityManagerInterface'); |
@@ -103,7 +103,7 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return mixed |
|
106 | + * @return string |
|
107 | 107 | */ |
108 | 108 | public function getId() |
109 | 109 | { |
@@ -40,6 +40,9 @@ |
||
40 | 40 | unlink(__DIR__ . '/../../_data/' . $basePath . 'Exception/error503.html.twig'); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $path |
|
45 | + */ |
|
43 | 46 | protected function getBundle($path) |
44 | 47 | { |
45 | 48 | $bundle = $this->createMock('Symfony\Component\HttpKernel\Bundle\BundleInterface'); |