@@ -125,6 +125,9 @@ discard block |
||
| 125 | 125 | $this->assertSame('renderResponse', $response->getContent()); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param boolean $isGranted |
|
| 130 | + */ |
|
| 128 | 131 | private function configureDownloadSecurity($pool, $media, $request, $isGranted): void |
| 129 | 132 | { |
| 130 | 133 | $strategy = $this->prophesize('Sonata\MediaBundle\Security\DownloadStrategyInterface'); |
@@ -133,6 +136,9 @@ discard block |
||
| 133 | 136 | $strategy->isGranted($media, $request)->willReturn($isGranted); |
| 134 | 137 | } |
| 135 | 138 | |
| 139 | + /** |
|
| 140 | + * @param integer $id |
|
| 141 | + */ |
|
| 136 | 142 | private function configureGetMedia($id, $media): void |
| 137 | 143 | { |
| 138 | 144 | $mediaManager = $this->prophesize('Sonata\CoreBundle\Model\BaseEntityManager'); |
@@ -147,6 +153,10 @@ discard block |
||
| 147 | 153 | $media->getProviderName()->willReturn('provider'); |
| 148 | 154 | } |
| 149 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string $template |
|
| 158 | + * @param string $rendered |
|
| 159 | + */ |
|
| 150 | 160 | private function configureRender($template, $data, $rendered): void |
| 151 | 161 | { |
| 152 | 162 | $templating = $this->prophesize('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface'); |