@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanAdminListExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanAdminListExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | - * @return mixed |
|
| 27 | + * @return boolean |
|
| 28 | 28 | */ |
| 29 | 29 | public function buildFields() |
| 30 | 30 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @return Pagerfanta |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | public function getPagerfanta() |
| 84 | 84 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @return mixed |
|
| 89 | + * @return ArrayIterator |
|
| 90 | 90 | */ |
| 91 | 91 | public function getIterator() |
| 92 | 92 | { |
@@ -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 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanArticleExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanArticleExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanConfigExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanConfigExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanDashboardExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanDashboardExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanFixturesExtensionTest extends AbstractPrependableExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanFixturesExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * Return the url to edit the given $item |
| 61 | 61 | * |
| 62 | - * @param object $item |
|
| 62 | + * @param \Kunstmaan\LeadGenerationBundle\Tests\unit\Entity\Popup\Popup $item |
|
| 63 | 63 | * |
| 64 | 64 | * @return array |
| 65 | 65 | */ |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Get the delete url for the given $item |
| 79 | 79 | * |
| 80 | - * @param object $item |
|
| 80 | + * @param \Kunstmaan\LeadGenerationBundle\Tests\unit\Entity\Popup\Popup $item |
|
| 81 | 81 | * |
| 82 | 82 | * @return array |
| 83 | 83 | */ |
@@ -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') |