| Total Complexity | 8 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class AbstractTableTest extends AbstractTestCase |
||
| 10 | { |
||
| 11 | public function setUp() |
||
| 12 | { |
||
| 13 | parent::setUp(); |
||
| 14 | |||
| 15 | $res = $this->r()->db()->tableList()->run(); |
||
| 16 | if (\is_array($res->getData()) && !\in_array('tabletest', $res->getData(), true)) { |
||
| 17 | $this->r()->db()->tableCreate('tabletest')->run(); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | public function tearDown() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param int|string $id |
||
| 33 | * @return ResponseInterface |
||
| 34 | */ |
||
| 35 | protected function insertDocument($id): ResponseInterface |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param int|string $id |
||
| 51 | * @param int $number |
||
| 52 | * @return ResponseInterface |
||
| 53 | */ |
||
| 54 | protected function insertDocumentWithNumber($id, int $number): ResponseInterface |
||
| 69 |