refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
26
tests/Commands/Scheduling/CalculateStatisticsTest.php
Normal file
26
tests/Commands/Scheduling/CalculateStatisticsTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user