|
@@ 28-34 (lines=7) @@
|
| 25 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function it_gets_from_json() |
| 29 |
|
{ |
| 30 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array(self::TOKEN_PARAMETER_NAME => 'abcd'))); |
| 31 |
|
$request->headers->set('content_type', 'application/json'); |
| 32 |
|
|
| 33 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function it_gets_from_json_x() |
| 37 |
|
{ |
|
@@ 36-42 (lines=7) @@
|
| 33 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function it_gets_from_json_x() |
| 37 |
|
{ |
| 38 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array(self::TOKEN_PARAMETER_NAME => 'abcd'))); |
| 39 |
|
$request->headers->set('content_type', 'application/x-json'); |
| 40 |
|
|
| 41 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function it_gets_from_json_parameter() |
| 45 |
|
{ |
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function it_gets_from_json_parameter() |
| 45 |
|
{ |
| 46 |
|
$request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array(self::TOKEN_PARAMETER_NAME => 'abcd'))); |
| 47 |
|
$request->headers->set('content_type', 'application/json;charset=UTF-8'); |
| 48 |
|
|
| 49 |
|
$this::getRefreshToken($request, self::TOKEN_PARAMETER_NAME)->shouldBe('abcd'); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|