Completed
Pull Request — master (#1358)
by Grégoire
02:17
created
tests/Controller/MediaControllerTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@  discard block
 block discarded – undo
137 137
         $this->assertSame('renderResponse', $response->getContent());
138 138
     }
139 139
 
140
+    /**
141
+     * @param boolean $isGranted
142
+     */
140 143
     private function configureDownloadSecurity($pool, $media, $request, $isGranted): void
141 144
     {
142 145
         $strategy = $this->prophesize(DownloadStrategyInterface::class);
@@ -145,6 +148,9 @@  discard block
 block discarded – undo
145 148
         $strategy->isGranted($media, $request)->willReturn($isGranted);
146 149
     }
147 150
 
151
+    /**
152
+     * @param integer $id
153
+     */
148 154
     private function configureGetMedia($id, $media): void
149 155
     {
150 156
         $mediaManager = $this->prophesize(BaseEntityManager::class);
@@ -159,6 +165,10 @@  discard block
 block discarded – undo
159 165
         $media->getProviderName()->willReturn('provider');
160 166
     }
161 167
 
168
+    /**
169
+     * @param string $template
170
+     * @param string $rendered
171
+     */
162 172
     private function configureRender($template, $data, $rendered): void
163 173
     {
164 174
         $templating = $this->prophesize(EngineInterface::class);
Please login to merge, or discard this patch.
tests/Document/MediaManagerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Returns mock of doctrine document manager.
67 67
      *
68
-     * @return \Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager
68
+     * @return ManagerRegistry
69 69
      */
70 70
     protected function createRegistryMock()
71 71
     {
Please login to merge, or discard this patch.
tests/Model/MediaTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
         }
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $propertyName
70
+     */
68 71
     protected function getMediaPropertyReflection($propertyName)
69 72
     {
70 73
         $rc = new \ReflectionClass(Media::class);
@@ -74,6 +77,9 @@  discard block
 block discarded – undo
74 77
         return $property;
75 78
     }
76 79
 
80
+    /**
81
+     * @param integer $id
82
+     */
77 83
     protected function getMedia($id)
78 84
     {
79 85
         $media = $this->getMockForAbstractClass(Media::class);
Please login to merge, or discard this patch.
tests/PHPCR/MediaManagerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Returns mock of doctrine document manager.
67 67
      *
68
-     * @return \Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager
68
+     * @return ManagerRegistry
69 69
      */
70 70
     protected function createRegistryMock()
71 71
     {
Please login to merge, or discard this patch.