@@ -23,14 +23,14 @@ public function setUp(): void
23
23
/** @test */
24
24
public function it_can_clean_the_statistics ()
25
25
{
26
- Collection::times (60 )->each (function (int $ index ) {
26
+ Collection::times (200 )->each (function (int $ index ) {
27
27
InboundEmail::forceCreate ([
28
28
'message ' => Str::random (),
29
29
'created_at ' => Carbon::now ()->subDays ($ index )->startOfDay (),
30
30
]);
31
31
});
32
32
33
- $ this ->assertCount (60 , InboundEmail::all ());
33
+ $ this ->assertCount (200 , InboundEmail::all ());
34
34
35
35
Artisan::call ('mailbox:clean ' );
36
36
@@ -46,19 +46,19 @@ public function it_errors_if_max_age_inf()
46
46
{
47
47
$ this ->app ['config ' ]->set ('mailbox.store_incoming_emails_for_days ' , INF );
48
48
49
- Collection::times (60 )->each (function (int $ index ) {
49
+ Collection::times (200 )->each (function (int $ index ) {
50
50
InboundEmail::forceCreate ([
51
51
'message ' => Str::random (),
52
52
'created_at ' => Carbon::now ()->subDays ($ index )->startOfDay (),
53
53
]);
54
54
});
55
55
56
- $ this ->assertCount (60 , InboundEmail::all ());
56
+ $ this ->assertCount (200 , InboundEmail::all ());
57
57
58
58
$ this ->artisan ('mailbox:clean ' )
59
59
->expectsOutput ('mailbox:clean is disabled because store_incoming_emails_for_days is set to INF. ' )
60
60
->assertExitCode (1 );
61
61
62
- $ this ->assertCount (60 , InboundEmail::all ());
62
+ $ this ->assertCount (200 , InboundEmail::all ());
63
63
}
64
64
}
0 commit comments