@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanRedirectExtensionTest extends AbstractExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanRedirectExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanNodeExtensionTest extends AbstractExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanNodeExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |
@@ -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 | { |
@@ -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 |
@@ -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 | { |
@@ -137,6 +137,11 @@ |
||
137 | 137 | $this->assertEquals(10, $this->object->getWeight()); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $lang |
|
142 | + * @param string $title |
|
143 | + * @param string $slug |
|
144 | + */ |
|
140 | 145 | private function getNodeWithTranslation($lang, $title, $slug, $nodeId = null) |
141 | 146 | { |
142 | 147 | $node = new Node(); |