mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
fixes for broken tests
This commit is contained in:
parent
caf653ed69
commit
12cfdc0c3b
@ -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');
|
||||
|
@ -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,
|
||||
|
||||
];
|
||||
|
@ -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,
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user