1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Completed refactor for company and account creation

This commit is contained in:
David Bomba 2019-06-25 15:14:28 +10:00
parent 220bedf3a0
commit 0cb1f9459d
6 changed files with 11 additions and 11 deletions

View File

@ -118,7 +118,7 @@ class ClientTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 3)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 3)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){

View File

@ -73,7 +73,7 @@ class InvoiceTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){
@ -137,7 +137,7 @@ class InvoiceTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){

View File

@ -73,7 +73,7 @@ class PaymentTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){
@ -137,7 +137,7 @@ class PaymentTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){

View File

@ -73,7 +73,7 @@ class QuoteTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){
@ -137,7 +137,7 @@ class QuoteTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){

View File

@ -73,7 +73,7 @@ class RecurringInvoiceTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){
@ -137,7 +137,7 @@ Log::error($acc);
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){

View File

@ -73,7 +73,7 @@ class RecurringQuoteTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){
@ -137,7 +137,7 @@ class RecurringQuoteTest extends TestCase
$this->assertNotNull($token); $this->assertNotNull($token);
$this->assertNotNull($user); $this->assertNotNull($user);
$this->assertNotNull($company); $this->assertNotNull($company);
$this->assertNotNull($user->token->company); //$this->assertNotNull($user->token->company);
factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){ factory(\App\Models\Client::class, 1)->create(['user_id' => $user->id, 'company_id' => $company->id])->each(function ($c) use ($user, $company){