diff options
Diffstat (limited to 'tests/TestCase.php')
| -rw-r--r-- | tests/TestCase.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/TestCase.php b/tests/TestCase.php index f20a691ef7..345c736064 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -22,6 +22,7 @@ use Fisharebest\Webtrees\Http\Controllers\GedcomFileController; use Fisharebest\Webtrees\Module\ModuleThemeInterface; use Fisharebest\Webtrees\Module\WebtreesTheme; use Fisharebest\Webtrees\Schema\SeedDatabase; +use Fisharebest\Webtrees\Services\MigrationService; use Fisharebest\Webtrees\Services\TimeoutService; use Fisharebest\Webtrees\Services\UserService; use Illuminate\Cache\ArrayStore; @@ -131,10 +132,11 @@ class TestCase extends \PHPUnit\Framework\TestCase Database::registerMacros(); // Create tables - Database::updateSchema('\Fisharebest\Webtrees\Schema', 'WT_SCHEMA_VERSION', Webtrees::SCHEMA_VERSION); + $migration_service = new MigrationService; + $migration_service->updateSchema('\Fisharebest\Webtrees\Schema', 'WT_SCHEMA_VERSION', Webtrees::SCHEMA_VERSION); // Create config data - (new SeedDatabase())->run(); + $migration_service->seedDatabase(); } /** |
