@@ -130,7 +130,7 @@ |
||
130 | 130 | * Write a message to the output. |
131 | 131 | * |
132 | 132 | * @param string $message |
133 | - * @param bool|true $newLine |
|
133 | + * @param boolean $newLine |
|
134 | 134 | */ |
135 | 135 | protected function log($message, $newLine = true): void |
136 | 136 | { |
@@ -294,8 +294,8 @@ |
||
294 | 294 | /** |
295 | 295 | * Asserts whether all expected texts can be found in the output within a given context. |
296 | 296 | * |
297 | - * @param string $extract PCRE regex expected to have a single matching group, extracting the content of a context |
|
298 | - * @param array $expected Excerpts of text expected to be found in the output |
|
297 | + * @param string $extractor PCRE regex expected to have a single matching group, extracting the content of a context |
|
298 | + * @param string[] $expected Excerpts of text expected to be found in the output |
|
299 | 299 | * @param string $output Searched output |
300 | 300 | */ |
301 | 301 | private function assertOutputFoundInContext($extractor, $expected, $output): void |
@@ -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'); |