Fixed data seeder.

This commit is contained in:
James Cole
2016-01-17 07:07:22 +01:00
parent fe30850568
commit 2b6790f83f

View File

@@ -23,12 +23,12 @@ class DatabaseSeeder extends Seeder
$this->call('PermissionSeeder'); $this->call('PermissionSeeder');
// set up basic test data (as little as possible): // set up basic test data (as little as possible):
if (App::environment() == 'testing' && gethostname() != 'lightning') { if (App::environment() == 'testing') {
$this->call('TestDataSeeder'); $this->call('TestDataSeeder');
} }
// this one is reserved for more extensive testing. // this one is reserved for more extensive testing.
if (App::environment() == 'testing' || gethostname() == 'lightning') { if (App::environment() == 'local') {
$this->call('VisualTestDataSeeder'); $this->call('VisualTestDataSeeder');
} }
} }