Completed
Push — 7.0 ( 9675c2...dcfe30 )
by André
145:48 queued 105:00
created
eZ/Bundle/EzPublishRestBundle/Tests/Functional/TestCase.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -170,6 +170,9 @@  discard block
 block discarded – undo
170 170
         );
171 171
     }
172 172
 
173
+    /**
174
+     * @param integer $expected
175
+     */
173 176
     protected function assertHttpResponseCodeEquals(ResponseInterface $response, $expected)
174 177
     {
175 178
         $responseCode = $response->getStatusCode();
@@ -211,6 +214,9 @@  discard block
 block discarded – undo
211 214
         return $errorMessageString;
212 215
     }
213 216
 
217
+    /**
218
+     * @param string $header
219
+     */
214 220
     protected function assertHttpResponseHasHeader(ResponseInterface $response, $header, $expectedValue = null)
215 221
     {
216 222
         $headerValue = $response->hasHeader($header) ? $response->getHeader($header)[0] : null;
@@ -220,11 +226,17 @@  discard block
 block discarded – undo
220 226
         }
221 227
     }
222 228
 
229
+    /**
230
+     * @param string $typeString
231
+     */
223 232
     protected function generateMediaTypeString($typeString)
224 233
     {
225 234
         return "application/vnd.ez.api.$typeString";
226 235
     }
227 236
 
237
+    /**
238
+     * @param string $typeString
239
+     */
228 240
     protected function getMediaFromTypeString($typeString)
229 241
     {
230 242
         $prefix = 'application/vnd.ez.api.';
Please login to merge, or discard this patch.