| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class AbstractTableTest extends AbstractTestCase |
||
| 10 | { |
||
| 11 | public function setUp() |
||
| 12 | { |
||
| 13 | parent::setUp(); |
||
| 14 | |||
| 15 | if (!\in_array('tabletest', $this->r()->db()->tableList()->run()->getData(), true)) { |
||
|
|
|||
| 16 | $this->r()->db()->tableCreate('tabletest')->run(); |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | public function tearDown() |
||
| 21 | { |
||
| 22 | if (\in_array('tabletest', $this->r()->db()->tableList()->run()->getData(), true)) { |
||
| 23 | $this->r()->db()->tableDrop('tabletest')->run(); |
||
| 24 | } |
||
| 25 | |||
| 26 | parent::tearDown(); |
||
| 27 | } |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $documentId |
||
| 32 | * @return ResponseInterface |
||
| 33 | */ |
||
| 34 | protected function insertDocument(int $documentId): ResponseInterface |
||
| 46 | } |
||
| 47 | } |
||
| 48 |