login()->loginNami(); $member = Member::factory()->defaults()->create(); Member::factory()->defaults()->create(); Invoice::factory() ->has(InvoicePosition::factory()->price(3500)->for($member), 'positions') ->has(InvoicePosition::factory()->price(1000)->for($member), 'positions') ->status(InvoiceStatus::SENT)->create(); Invoice::factory()->has(InvoicePosition::factory()->price(600)->for($member), 'positions')->status(InvoiceStatus::NEW)->create(); Invoice::factory()->has(InvoicePosition::factory()->price(1000)->for($member), 'positions')->status(InvoiceStatus::PAID)->create(); Livewire::test(InvoiceMemberPaymentBlock::class) ->assertSee('1 / 2') ->assertSee('51,00 €'); } }