Lint
This commit is contained in:
parent
bf8f6c87a8
commit
703c74a9f4
|
@ -15,7 +15,7 @@ class InvoiceDestroyActionTest extends TestCase
|
|||
public function testItDestroysInvoice(): void
|
||||
{
|
||||
$this->login()->loginNami()->withoutExceptionHandling();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory(), 'positions')->create();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory()->withMember(), 'positions')->create();
|
||||
|
||||
$this->delete(route('invoice.destroy', ['invoice' => $invoice]))->assertOk();
|
||||
$this->assertDatabaseCount('invoices', 0);
|
||||
|
|
|
@ -21,7 +21,7 @@ class InvoiceIndexActionTest extends TestCase
|
|||
$member = Member::factory()->defaults()->create(['firstname' => 'Aaaa', 'lastname' => 'Aaab']);
|
||||
$invoice = Invoice::factory()
|
||||
->has(InvoicePosition::factory()->price(1100)->for($member)->state(['description' => 'lala']), 'positions')
|
||||
->has(InvoicePosition::factory()->price(2200), 'positions')
|
||||
->has(InvoicePosition::factory()->price(2200)->withMember(), 'positions')
|
||||
->to(ReceiverRequestFactory::new()->name('Familie Blabla'))
|
||||
->sentAt(now()->subDay())
|
||||
->via(BillKind::POST)
|
||||
|
|
|
@ -68,7 +68,7 @@ class InvoiceUpdateActionTest extends TestCase
|
|||
public function testItUpdatesAPosition(): void
|
||||
{
|
||||
$this->login()->loginNami()->withoutExceptionHandling();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory(), 'positions')->create();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory()->withMember(), 'positions')->create();
|
||||
|
||||
$this->patchJson(
|
||||
route('invoice.update', ['invoice' => $invoice]),
|
||||
|
@ -87,7 +87,7 @@ class InvoiceUpdateActionTest extends TestCase
|
|||
public function testItDeletesAPosition(): void
|
||||
{
|
||||
$this->login()->loginNami()->withoutExceptionHandling();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory(), 'positions')->create();
|
||||
$invoice = Invoice::factory()->has(InvoicePosition::factory()->withMember(), 'positions')->create();
|
||||
|
||||
$this->patchJson(
|
||||
route('invoice.update', ['invoice' => $invoice]),
|
||||
|
|
Loading…
Reference in New Issue