@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanPagePartExtensionTest extends AbstractExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanPagePartExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanNodeSearchExtensionTest extends AbstractExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanNodeSearchExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Return entity manager mock |
| 149 | 149 | * |
| 150 | - * @return EntityManager |
|
| 150 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 151 | 151 | */ |
| 152 | 152 | public function getEntityManager() |
| 153 | 153 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * Return alc provider mock |
| 161 | 161 | * |
| 162 | - * @return AclProviderInterface |
|
| 162 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 163 | 163 | */ |
| 164 | 164 | public function getAclProvider() |
| 165 | 165 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * Return security token storage |
| 171 | 171 | * |
| 172 | - * @return TokenStorageInterface |
|
| 172 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 173 | 173 | */ |
| 174 | 174 | public function getTokenStorage() |
| 175 | 175 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * Return oid retrieval strategy mock |
| 181 | 181 | * |
| 182 | - * @return ObjectIdentityRetrievalStrategyInterface |
|
| 182 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 183 | 183 | */ |
| 184 | 184 | public function getOidRetrievalStrategy() |
| 185 | 185 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | /** |
| 190 | 190 | * Return event dispatcher mock |
| 191 | 191 | * |
| 192 | - * @return EventDispatcherInterface |
|
| 192 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 193 | 193 | */ |
| 194 | 194 | public function getEventDispatcher() |
| 195 | 195 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | - * @return KernelInterface |
|
| 208 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 209 | 209 | */ |
| 210 | 210 | public function getKernel() |
| 211 | 211 | { |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | /** |
| 268 | 268 | * Return entity mock |
| 269 | 269 | * |
| 270 | - * @return AbstractEntity |
|
| 270 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 271 | 271 | */ |
| 272 | 272 | public function getEntity() |
| 273 | 273 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | private $em; |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 25 | + * @return \Doctrine\ORM\EntityManagerInterface |
|
| 26 | 26 | */ |
| 27 | 27 | private function getEm() |
| 28 | 28 | { |
@@ -19,6 +19,11 @@ discard block |
||
| 19 | 19 | /** @var EntityRepository */ |
| 20 | 20 | private $repo; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $locale |
|
| 24 | + * @param string $permission |
|
| 25 | + * @param \PHPUnit\Framework\MockObject\MockObject $repo |
|
| 26 | + */ |
|
| 22 | 27 | public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission, $repo) |
| 23 | 28 | { |
| 24 | 29 | parent::__construct($em, $aclHelper, $locale, $permission); |
@@ -26,7 +31,7 @@ discard block |
||
| 26 | 31 | } |
| 27 | 32 | |
| 28 | 33 | /** |
| 29 | - * @return bool |
|
| 34 | + * @return EntityRepository |
|
| 30 | 35 | */ |
| 31 | 36 | public function getOverviewPageRepository() |
| 32 | 37 | { |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * @param string $password The plain password |
| 79 | 79 | * @param string $email The email of the user |
| 80 | 80 | * @param string $locale The locale (language) of the user |
| 81 | - * @param array $roles The roles the user has |
|
| 81 | + * @param string[] $roles The roles the user has |
|
| 82 | 82 | * @param array $groups The groups the user belongs to |
| 83 | 83 | * @param bool $enabled Enable login for the user |
| 84 | 84 | * @param bool $changed Disable password changed for the user |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | unlink(__DIR__ . '/../../_data/' . $basePath . 'TwigBundle/views/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'); |
@@ -35,6 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param ContainerInterface|string $multilanguage |
| 38 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
| 38 | 39 | */ |
| 39 | 40 | public function __construct(/*ContainerInterface|RequestStack*/ $requestStack, $multilanguage = null, $defaultLocale = null, $requiredLocales = null, AdminRouteHelper $adminRouteHelper = null, EntityManagerInterface $em = null, array $hosts = null) |
| 40 | 41 | { |
@@ -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,10 @@ discard block |
||
| 172 | 175 | return $listener; |
| 173 | 176 | } |
| 174 | 177 | |
| 178 | + /** |
|
| 179 | + * @param Request $request |
|
| 180 | + * @param \PHPUnit\Framework\MockObject\MockObject $response |
|
| 181 | + */ |
|
| 175 | 182 | private function getFilterResponseEvent($request, $response, $requestType = HttpKernelInterface::MASTER_REQUEST) |
| 176 | 183 | { |
| 177 | 184 | $event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\FilterResponseEvent') |