@@ -41,6 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * {@inheritdoc} |
| 44 | + * @param string|null $view |
|
| 44 | 45 | */ |
| 45 | 46 | public function render($view, array $parameters = [], Response $response = null) |
| 46 | 47 | { |
@@ -123,6 +123,9 @@ discard block |
||
| 123 | 123 | $this->assertSame('renderResponse', $response->getContent()); |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | + /** |
|
| 127 | + * @param boolean $isGranted |
|
| 128 | + */ |
|
| 126 | 129 | private function configureDownloadSecurity($pool, $media, $request, $isGranted) |
| 127 | 130 | { |
| 128 | 131 | $strategy = $this->prophesize('Sonata\MediaBundle\Security\DownloadStrategyInterface'); |
@@ -131,6 +134,9 @@ discard block |
||
| 131 | 134 | $strategy->isGranted($media, $request)->willReturn($isGranted); |
| 132 | 135 | } |
| 133 | 136 | |
| 137 | + /** |
|
| 138 | + * @param integer $id |
|
| 139 | + */ |
|
| 134 | 140 | private function configureGetMedia($id, $media) |
| 135 | 141 | { |
| 136 | 142 | $mediaManager = $this->prophesize('Sonata\CoreBundle\Model\BaseEntityManager'); |
@@ -145,6 +151,10 @@ discard block |
||
| 145 | 151 | $media->getProviderName()->willReturn('provider'); |
| 146 | 152 | } |
| 147 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $template |
|
| 156 | + * @param string $rendered |
|
| 157 | + */ |
|
| 148 | 158 | private function configureRender($template, $data, $rendered) |
| 149 | 159 | { |
| 150 | 160 | $templating = $this->prophesize('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface'); |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | ->getPager(['enabled' => false], 1); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param \Closure $qbCallback |
|
| 103 | + */ |
|
| 101 | 104 | protected function getGalleryManager($qbCallback) |
| 102 | 105 | { |
| 103 | 106 | $em = EntityManagerMockFactory::create($this, $qbCallback, [ |
@@ -94,6 +94,9 @@ |
||
| 94 | 94 | ->getPager(['enabled' => false], 1); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @param \Closure $qbCallback |
|
| 99 | + */ |
|
| 97 | 100 | protected function getMediaManager($qbCallback) |
| 98 | 101 | { |
| 99 | 102 | $em = EntityManagerMockFactory::create($this, $qbCallback, [ |