@@ -137,6 +137,9 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -65,7 +65,7 @@ |
||
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 | { |
@@ -65,6 +65,9 @@ discard block |
||
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 |
||
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); |
@@ -65,7 +65,7 @@ |
||
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 | { |