@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | "code": "BE" |
| 74 | 74 | } |
| 75 | -EOT; |
|
| 75 | +eot; |
|
| 76 | 76 | |
| 77 | 77 | $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 78 | 78 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | ] |
| 100 | 100 | } |
| 101 | -EOT; |
|
| 101 | +eot; |
|
| 102 | 102 | |
| 103 | 103 | $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 104 | 104 | |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 148 | 148 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
| 149 | 149 | |
| 150 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 150 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 151 | 151 | |
| 152 | 152 | $response = $this->client->getResponse(); |
| 153 | 153 | $this->assertResponse($response, 'zone/show_response', Response::HTTP_OK); |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $this->loadFixturesFromFile('resources/countries.yml'); |
| 187 | 187 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
| 188 | 188 | |
| 189 | - $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 189 | + $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 190 | 190 | |
| 191 | 191 | $response = $this->client->getResponse(); |
| 192 | 192 | $this->assertResponse($response, 'zone/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |
@@ -214,12 +214,12 @@ discard block |
||
| 214 | 214 | } |
| 215 | 215 | EOT; |
| 216 | 216 | |
| 217 | - $this->client->request('PUT', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 217 | + $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 218 | 218 | |
| 219 | 219 | $response = $this->client->getResponse(); |
| 220 | 220 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 221 | 221 | |
| 222 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 222 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 223 | 223 | |
| 224 | 224 | $response = $this->client->getResponse(); |
| 225 | 225 | $this->assertResponse($response, 'zone/update_response', Response::HTTP_OK); |
@@ -265,12 +265,12 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | EOT; |
| 267 | 267 | |
| 268 | - $this->client->request('PATCH', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 268 | + $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 269 | 269 | |
| 270 | 270 | $response = $this->client->getResponse(); |
| 271 | 271 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 272 | 272 | |
| 273 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 273 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 274 | 274 | |
| 275 | 275 | $response = $this->client->getResponse(); |
| 276 | 276 | $this->assertResponse($response, 'zone/update_partially_response', Response::HTTP_OK); |
@@ -308,12 +308,12 @@ discard block |
||
| 308 | 308 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 309 | 309 | $zones = $this->loadFixturesFromFile('resources/zones.yml'); |
| 310 | 310 | |
| 311 | - $this->client->request('DELETE', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 311 | + $this->client->request('DELETE', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType); |
|
| 312 | 312 | |
| 313 | 313 | $response = $this->client->getResponse(); |
| 314 | 314 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 315 | 315 | |
| 316 | - $this->client->request('GET', '/api/v1/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 316 | + $this->client->request('GET', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 317 | 317 | |
| 318 | 318 | $response = $this->client->getResponse(); |
| 319 | 319 | $this->assertResponseCode($response, Response::HTTP_NOT_FOUND); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | "sourceCurrency": "EUR", |
| 76 | 76 | "targetCurrency": "GBP" |
| 77 | 77 | } |
| 78 | -EOT; |
|
| 78 | +eot; |
|
| 79 | 79 | |
| 80 | 80 | $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 81 | 81 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | "sourceCurrency": "EUR", |
| 99 | 99 | "targetCurrency": "GBP" |
| 100 | 100 | } |
| 101 | -EOT; |
|
| 101 | +eot; |
|
| 102 | 102 | |
| 103 | 103 | $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 104 | 104 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | { |
| 230 | 230 | "ratio": 0.84 |
| 231 | 231 | } |
| 232 | -EOT; |
|
| 232 | +eot; |
|
| 233 | 233 | |
| 234 | 234 | $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
| 235 | 235 | |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | "sourceCurrency": "GBP", |
| 262 | 262 | "targetCurrency": "EUR" |
| 263 | 263 | } |
| 264 | -EOT; |
|
| 264 | +eot; |
|
| 265 | 265 | |
| 266 | 266 | $this->client->request('PATCH', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
| 267 | 267 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | { |
| 291 | 291 | "ratio": "its-a-trap" |
| 292 | 292 | } |
| 293 | -EOT; |
|
| 293 | +eot; |
|
| 294 | 294 | |
| 295 | 295 | $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data); |
| 296 | 296 | |