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:
parent
220bedf3a0
commit
0cb1f9459d
@ -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){
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
@ -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){
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user