Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testEmptyTable() |
||
14 | { |
||
15 | /** @var ResponseInterface $count */ |
||
16 | $count = $this->r() |
||
17 | ->table('tabletest') |
||
18 | ->filter(['title' => 'Test document']) |
||
19 | ->count() |
||
20 | ->run(); |
||
21 | |||
22 | $this->assertInternalType('int', $count->getData()); |
||
23 | |||
24 | $res = $this->r() |
||
25 | ->table('tabletest') |
||
26 | ->delete() |
||
27 | ->run(); |
||
28 | |||
29 | $this->assertObStatus(['deleted' => $count->getData()], $res->getData()); |
||
30 | } |
||
32 |