|
@@ 36-42 (lines=7) @@
|
| 33 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function it_gets_from_json() |
| 37 |
|
{ |
| 38 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd'))); |
| 39 |
|
$request->headers->set('content_type', 'application/json'); |
| 40 |
|
|
| 41 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function it_gets_from_json_x() |
| 45 |
|
{ |
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function it_gets_from_json_x() |
| 45 |
|
{ |
| 46 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd'))); |
| 47 |
|
$request->headers->set('content_type', 'application/x-json'); |
| 48 |
|
|
| 49 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function it_gets_from_json_parameter() |
| 53 |
|
{ |
|
@@ 52-58 (lines=7) @@
|
| 49 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function it_gets_from_json_parameter() |
| 53 |
|
{ |
| 54 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd'))); |
| 55 |
|
$request->headers->set('content_type', 'application/json;charset=UTF-8'); |
| 56 |
|
|
| 57 |
|
$this->getRefreshToken($request)->shouldBe('abcd'); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
public function it_gets_from_query_param_using_camel_case_naming(NameGeneratorInterface $nameGenerator) |