Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testJsonResponse() |
||
26 | { |
||
27 | $this->response = new \Illuminate\Http\Response(new JsonSerializableMixedResourcesStub); |
||
28 | |||
29 | $this->assertEquals( |
||
30 | (new JsonSerializableMixedResourcesStub)->jsonSerialize(), |
||
31 | $this->jsonResponse() |
||
32 | ); |
||
33 | $this->assertEquals( |
||
34 | ['foobar_foo' => 'foo', 'foobar_bar' => 'bar'], |
||
35 | $this->jsonResponse('foobar') |
||
36 | ); |
||
37 | $this->assertEquals('bar', $this->jsonResponse('foobar.foobar_bar')); |
||
38 | } |
||
39 | } |
||
40 |