@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanMenuExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanMenuExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanMultiDomainExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanMultiDomainExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -138,6 +138,9 @@ discard block |
||
| 138 | 138 | $object->onKernelResponse($event); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + /** |
|
| 142 | + * @param \PHPUnit_Framework_MockObject_MockObject $flashBag |
|
| 143 | + */ |
|
| 141 | 144 | private function getHostOverrideListener($flashBag) |
| 142 | 145 | { |
| 143 | 146 | $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session') |
@@ -172,6 +175,11 @@ discard block |
||
| 172 | 175 | return $listener; |
| 173 | 176 | } |
| 174 | 177 | |
| 178 | + /** |
|
| 179 | + * @param Request $request |
|
| 180 | + * |
|
| 181 | + * @return \Symfony\Component\HttpKernel\Event\FilterResponseEvent |
|
| 182 | + */ |
|
| 175 | 183 | private function getFilterResponseEvent($request, $response, $requestType = HttpKernelInterface::MASTER_REQUEST) |
| 176 | 184 | { |
| 177 | 185 | $event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\FilterResponseEvent') |
@@ -381,6 +381,9 @@ discard block |
||
| 381 | 381 | return $request; |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | + /** |
|
| 385 | + * @param string $uri |
|
| 386 | + */ |
|
| 384 | 387 | private function getRequestWithOverride($uri) |
| 385 | 388 | { |
| 386 | 389 | $session = new Session(new MockArraySessionStorage()); |
@@ -394,6 +397,9 @@ discard block |
||
| 394 | 397 | return $request; |
| 395 | 398 | } |
| 396 | 399 | |
| 400 | + /** |
|
| 401 | + * @param Request $request |
|
| 402 | + */ |
|
| 397 | 403 | private function getDomainConfiguration($request) |
| 398 | 404 | { |
| 399 | 405 | $hostMap = array( |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | - * @param $request |
|
| 182 | - * @param null $nodeTranslation |
|
| 181 | + * @param Request $request |
|
| 182 | + * @param NodeTranslation $nodeTranslation |
|
| 183 | 183 | * @return Container |
| 184 | 184 | */ |
| 185 | 185 | private function getContainer($request, $nodeTranslation = null) |
@@ -242,6 +242,9 @@ discard block |
||
| 242 | 242 | return $request; |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | + /** |
|
| 246 | + * @param NodeTranslation $nodeTranslation |
|
| 247 | + */ |
|
| 245 | 248 | private function getEntityManager($nodeTranslation = null) |
| 246 | 249 | { |
| 247 | 250 | $em = $this->createMock('Doctrine\ORM\EntityManagerInterface'); |
@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace Kunstmaan\NodeBundle\Form\EventListener; |
| 4 | 4 | |
| 5 | 5 | use Kunstmaan\NodeBundle\Form\Type\URLChooserType; |
| 6 | -use Kunstmaan\NodeBundle\Validation\URLValidator; |
|
| 7 | 6 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 8 | -use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
|
| 9 | 7 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 10 | 8 | use Symfony\Component\Form\FormEvent; |
| 11 | 9 | use Symfony\Component\Form\FormEvents; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanNodeExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanNodeExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -65,6 +65,10 @@ |
||
| 65 | 65 | $object->match('/en/some-uri'); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @param Request|null $request |
|
| 70 | + * @param NodeTranslation $nodeTranslation |
|
| 71 | + */ |
|
| 68 | 72 | private function getContainer($request, $multiLanguage = false, $nodeTranslation = null) |
| 69 | 73 | { |
| 70 | 74 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @return array |
|
| 24 | + * @return string[] |
|
| 25 | 25 | */ |
| 26 | 26 | public function getAccessRoles() |
| 27 | 27 | { |