fixes for broken tests

This commit is contained in:
David Bomba 2019-03-28 09:28:11 +11:00
parent caf653ed69
commit 12cfdc0c3b
3 changed files with 0 additions and 6 deletions

View File

@ -223,8 +223,6 @@ class CreateUsersTable extends Migration
$table->unsignedInteger('user_id')->index();
$table->string('token')->nullable();
$table->string('name')->nullable();
$table->string('db', 100)->nullable();
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');

View File

@ -62,7 +62,6 @@ class MultiDBUserTest extends TestCase
'remember_token' => str_random(10),
'email' => 'db1@example.com',
'oauth_user_id' => '123',
'db' => config('database.default'),
'account_id' => $account->id,
];
@ -76,7 +75,6 @@ class MultiDBUserTest extends TestCase
'remember_token' => str_random(10),
'email' => 'db2@example.com',
'oauth_user_id' => 'abc',
'db' => config('database.default'),
'account_id' => $account2->id,
];

View File

@ -57,7 +57,6 @@ class UniqueEmailTest extends TestCase
'first_name' => 'user_db_1',
'email' => 'user@example.com',
'password' => Hash::make('password'),
'db' => config('database.default'),
'account_id' => $account->id,
];
@ -65,7 +64,6 @@ class UniqueEmailTest extends TestCase
'first_name' => 'user_db_2',
'email' => 'user@example.com',
'password' => Hash::make('password'),
'db' => config('database.default'),
'account_id' => $account2->id,
];