27 lines
541 B
PHP
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);
|
|
}
|
|
}
|