fixes for tests (#2485)

This commit is contained in:
David Bomba 2018-11-02 22:57:59 +11:00 committed by GitHub
parent d430600e1e
commit c6f70c2832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,7 @@ DB_PASSWORD=ninja
DB_CONNECTION=db-ninja-01
DB_DATABASE1=db-ninja-01
DB_DATABASE2=db-ninja-02
MAIL_DRIVER=smtp
MAIL_DRIVER=log
MAIL_PORT=587
MAIL_ENCRYPTION=tls
MAIL_HOST=

View File

@ -50,7 +50,12 @@ class CreateUser
$user->fill($this->request->all());
$user->save();
$user->companies()->attach($this->company->id, [
'account_id' => $this->account->id,
'is_owner' => 1,
'is_admin' => 1,
]);
/*
CompanyUser::create([
'user_id' => $user->id,
'account_id' => $this->account->id,
@ -61,7 +66,7 @@ class CreateUser
]);
*/
event(new UserCreated($user));
return $user;

View File

@ -18,7 +18,6 @@ use Tests\TestCase;
class UniqueEmailTest extends TestCase
{
use InteractsWithDatabase;
//use DatabaseMigrations;
protected $rule;