Completed
Pull Request — master (#1354)
by Jordi Sala
17:22
created
tests/Controller/MediaControllerTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.