@@ -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') |
@@ -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(); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Returns a list of functions to add to the existing list. |
| 52 | 52 | * |
| 53 | - * @return array An array of functions |
|
| 53 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 54 | 54 | */ |
| 55 | 55 | public function getFunctions() |
| 56 | 56 | { |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | - * @param $src |
|
| 237 | + * @param string $src |
|
| 238 | 238 | * |
| 239 | 239 | * @return array |
| 240 | 240 | */ |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | $listener = new NodeIndexUpdateEventListener($this->getContainer($this->getSearchConfiguration(false))); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
| 132 | + */ |
|
| 130 | 133 | private function getContainer($searchConfigMock) |
| 131 | 134 | { |
| 132 | 135 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -141,6 +144,9 @@ discard block |
||
| 141 | 144 | return $container; |
| 142 | 145 | } |
| 143 | 146 | |
| 147 | + /** |
|
| 148 | + * @param boolean $expectCall |
|
| 149 | + */ |
|
| 144 | 150 | private function getSearchConfiguration($expectCall) |
| 145 | 151 | { |
| 146 | 152 | $searchConfig = $this->createMock(NodePagesConfiguration::class); |
@@ -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 */ $nodePagesConfiguration, /* EntityManagerInterface */ $em = null) |
| 33 | 37 | { |
| 34 | 38 | |