Testing needs to have the database seeded
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
// $this->call(UsersTableSeeder::class);
|
||||
}
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//$this->call(InitialSetupSeeder::class);
|
||||
$this->call(NodeHierarchy::class);
|
||||
}
|
||||
}
|
||||
|
@@ -5,6 +5,8 @@ namespace Database\Seeders;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
use App\Models\Software;
|
||||
|
||||
class InitialSetupSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
@@ -27,21 +29,21 @@ class InitialSetupSeeder extends Seeder
|
||||
DB::table('software')->insert([
|
||||
'name'=>'Custom',
|
||||
'active'=>TRUE,
|
||||
'type'=>Software::SOFTWARE_MAILER,
|
||||
]);
|
||||
|
||||
DB::table('domains')->insert([
|
||||
'name'=>'private',
|
||||
'default'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'public'=>TRUE,
|
||||
'notes'=>'PrivateNet: Internal Testing Network'
|
||||
]);
|
||||
|
||||
DB::table('zones')->insert([
|
||||
'zone_id'=>'10',
|
||||
'domain_id'=>1,
|
||||
'public'=>TRUE,
|
||||
'active'=>TRUE,
|
||||
'name'=>'private',
|
||||
'description'=>'PrivateNet: Internal Testing Network'
|
||||
]);
|
||||
|
||||
DB::table('nodes')->insert([
|
||||
|
Reference in New Issue
Block a user