fix: db
This commit is contained in:
@@ -229,6 +229,22 @@ class DailyReportTest extends TestCase
|
||||
$this->assertSame(1, $row->uv);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function command_skips_fresh_historical_days_unless_forced(): void
|
||||
{
|
||||
$this->artisan('coruna:daily-stats', ['--days' => 5])
|
||||
->expectsOutputToContain('daily-stats rebuilt=5')
|
||||
->assertSuccessful();
|
||||
|
||||
$this->artisan('coruna:daily-stats', ['--days' => 5])
|
||||
->expectsOutputToContain('daily-stats rebuilt=2')
|
||||
->assertSuccessful();
|
||||
|
||||
$this->artisan('coruna:daily-stats', ['--days' => 5, '--force' => true])
|
||||
->expectsOutputToContain('daily-stats rebuilt=5')
|
||||
->assertSuccessful();
|
||||
}
|
||||
|
||||
#[Test]
|
||||
public function agent_only_sees_own_channel(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user