| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | abstract class AbstractFunctionalTest extends AbstractIntegrationTest |
||
| 11 | { |
||
| 12 | public const TEST_TYPE = 'functional'; |
||
| 13 | |||
| 14 | protected function setupCopiedWorkDirAndCreateDatabase() |
||
| 15 | { |
||
| 16 | $this->setupCopiedWorkDir(); |
||
| 17 | $database = $this->container->get(Database::class); |
||
| 18 | $database->drop(true); |
||
| 19 | $database->create(true); |
||
| 20 | $schema = $this->container->get(Schema::class); |
||
| 21 | $schema->create(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $extra |
||
| 26 | * |
||
| 27 | * @throws Exception\ConfigException |
||
| 28 | * @throws Exception\DoctrineStaticMetaException |
||
| 29 | */ |
||
| 30 | protected function setupCopiedWorkDir(string $extra = 'Copied'): void |
||
| 38 | ); |
||
| 39 | } |
||
| 41 |