login()->loginNami(); Member::factory() ->defaults() ->has(Payment::factory()->notPaid()->subscription('example', 3400)) ->create(); Member::factory() ->defaults() ->create(); $data = app(MemberPaymentBlock::class)->render()['data']; $this->assertEquals([ 'amount' => '34,00 €', 'members' => 1, 'total_members' => 2, ], $data); } }