Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testPluckResult() |
||
15 | { |
||
16 | $this->insertDocumentWithNumber(1, 1); |
||
17 | |||
18 | /** @var ResponseInterface $response */ |
||
19 | $response = $this->r() |
||
20 | ->table('tabletest') |
||
21 | ->get(1) |
||
22 | ->pluck('id', 'description') |
||
23 | ->run(); |
||
24 | |||
25 | $this->assertInstanceOf(ResponseInterface::class, $response); |
||
26 | $this->assertCount(2, $response->getData()); |
||
27 | $this->assertArrayHasKey('id', $response->getData()); |
||
1 ignored issue
–
show
|
|||
28 | $this->assertArrayHasKey('description', $response->getData()); |
||
29 | } |
||
31 |