fix gitlab tests
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Tests\Unit\Services\ClassPreparation;
|
||||
|
||||
use App\Services\ClassPreparation\ClassPreparationLogService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ClassPreparationLogServiceTest extends TestCase
|
||||
@@ -12,7 +13,7 @@ class ClassPreparationLogServiceTest extends TestCase
|
||||
|
||||
public function test_has_prep_changed_detects_diff(): void
|
||||
{
|
||||
$service = new ClassPreparationLogService;
|
||||
$service = new ClassPreparationLogService();
|
||||
|
||||
$this->assertTrue($service->hasPrepChanged(['a' => 1], ['a' => 2]));
|
||||
$this->assertFalse($service->hasPrepChanged(['a' => 1], ['a' => 1]));
|
||||
@@ -20,7 +21,7 @@ class ClassPreparationLogServiceTest extends TestCase
|
||||
|
||||
public function test_create_log_and_get_latest(): void
|
||||
{
|
||||
$service = new ClassPreparationLogService;
|
||||
$service = new ClassPreparationLogService();
|
||||
$created = $service->createLog('101', '1-A', '2025-2026', ['Small Table' => 2], '2025-09-01 00:00:00');
|
||||
|
||||
$this->assertTrue($created);
|
||||
|
||||
Reference in New Issue
Block a user