@@ -170,6 +170,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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.'; |