From 8c3e1068086a769c57e858396c1b6af7d1e52f6c Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 20 Feb 2019 22:51:35 +0000 Subject: Testing --- tests/TestCase.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/TestCase.php') 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(); } /** -- cgit v1.3