@@ -23,14 +23,14 @@ public function setUp(): void
2323    /** @test */ 
2424    public  function  it_can_clean_the_statistics ()
2525    {
26-         Collection::times (60 )->each (function  (int  $ index
26+         Collection::times (200 )->each (function  (int  $ index
2727            InboundEmail::forceCreate ([
2828                'message '  => Str::random (),
2929                'created_at '  => Carbon::now ()->subDays ($ indexstartOfDay (),
3030            ]);
3131        });
3232
33-         $ this assertCount (60 , InboundEmail::all ());
33+         $ this assertCount (200 , InboundEmail::all ());
3434
3535        Artisan::call ('mailbox:clean ' );
3636
@@ -46,19 +46,19 @@ public function it_errors_if_max_age_inf()
4646    {
4747        $ this app ['config ' ]->set ('mailbox.store_incoming_emails_for_days ' , INF );
4848
49-         Collection::times (60 )->each (function  (int  $ index
49+         Collection::times (200 )->each (function  (int  $ index
5050            InboundEmail::forceCreate ([
5151                'message '  => Str::random (),
5252                'created_at '  => Carbon::now ()->subDays ($ indexstartOfDay (),
5353            ]);
5454        });
5555
56-         $ this assertCount (60 , InboundEmail::all ());
56+         $ this assertCount (200 , InboundEmail::all ());
5757
5858        $ this artisan ('mailbox:clean ' )
5959             ->expectsOutput ('mailbox:clean is disabled because store_incoming_emails_for_days is set to INF. ' )
6060             ->assertExitCode (1 );
6161
62-         $ this assertCount (60 , InboundEmail::all ());
62+         $ this assertCount (200 , InboundEmail::all ());
6363    }
6464}
0 commit comments