summaryrefslogtreecommitdiff
path: root/tests/TestCase.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-20 22:51:35 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-20 22:51:35 +0000
commit8c3e1068086a769c57e858396c1b6af7d1e52f6c (patch)
treeccd1ce761abc7871957906f1b29889662eb90179 /tests/TestCase.php
parent5ad3f7b6607715bd408a6941406eebf79ed1ef00 (diff)
downloadwebtrees-8c3e1068086a769c57e858396c1b6af7d1e52f6c.tar.gz
webtrees-8c3e1068086a769c57e858396c1b6af7d1e52f6c.tar.bz2
webtrees-8c3e1068086a769c57e858396c1b6af7d1e52f6c.zip
Testing
Diffstat (limited to 'tests/TestCase.php')
-rw-r--r--tests/TestCase.php6
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();
}
/**