Files
laravel_school_api/tests/Architecture/StudentBoundaryTest.php
T
2026-05-30 01:11:35 -04:00

22 lines
653 B
PHP

<?php declare(strict_types=1);
namespace Tests\Architecture;
use PHPUnit\Framework\TestCase;
use Tests\Architecture\Concerns\ScansArchitecture;
final class StudentBoundaryTest extends TestCase
{
use ScansArchitecture;
public function test_student_identifier_generation_does_not_use_max_id(): void
{
$this->assertFilesDoNotContain('app', ["max('id')", 'max("id")', 'MAX(id)']);
}
public function test_core_student_layer_has_no_extension_profile_fields(): void
{
$this->assertFilesDoNotContain('app/Domain/SchoolCore/Students', ['quran_level', 'arabic_level', 'halaqa', 'masjid_family', 'imam_note']);
}
}