| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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()); |
||
| 28 | $this->assertArrayHasKey('description', $response->getData()); |
||
| 29 | } |
||
| 31 |