Files
CRM/tests/Commands/Scheduling/CalculateStatisticsTest.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

27 lines
541 B
PHP

<?php
namespace Tests\Commands\Scheduling;
use Tests\TestCase;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CalculateStatisticsTest extends TestCase
{
use DatabaseTransactions;
/** @test */
public function the_command_runs_well()
{
$runsWell = true;
try {
$this->artisan('monica:calculatestatistics')->run();
} catch (QueryException $e) {
$runsWell = false;
}
$this->assertTrue($runsWell);
}
}