| Total Complexity | 7 | 
| Total Lines | 39 | 
| 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() | ||
| 22 |     { | ||
| 23 | $res = $this->r()->db()->tableList()->run(); | ||
| 24 |         if (\is_array($res->getData()) && \in_array('tabletest', $res->getData(), true)) { | ||
| 25 |             $this->r()->db()->tableDrop('tabletest')->run(); | ||
| 26 | } | ||
| 27 | |||
| 28 | parent::tearDown(); | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | /** | ||
| 33 | * @param int $documentId | ||
| 34 | * @return ResponseInterface | ||
| 35 | */ | ||
| 36 | protected function insertDocument(int $documentId): ResponseInterface | ||
| 48 | } | ||
| 49 | } | ||
| 50 |