2ad6e9cf02
API CI/CD / Validate (composer + pint) (push) Successful in 2m51s
API CI/CD / Test (PHPUnit) (push) Failing after 3m6s
API CI/CD / Build frontend assets (push) Failing after 5m23s
API CI/CD / Security audit (push) Failing after 34s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
31 lines
1.4 KiB
PHP
31 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Tests\Feature\Api\V1\FullSurface;
|
|
|
|
use Tests\Feature\Api\V1\FullSurface\Support\FullSurfaceE2EContractCase;
|
|
|
|
class ApiBatch18CrossModuleBusinessInvariantRegisterTest extends FullSurfaceE2EContractCase
|
|
{
|
|
public function test_batch18_business_invariant_route_families_remain_present(): void
|
|
{
|
|
$families = [
|
|
'identity immutability' => ['users', 'students', 'parents'],
|
|
'role and privilege boundaries' => ['roles', 'permissions', 'admin'],
|
|
'consent and communication compliance' => ['notification', 'message', 'email', 'whatsapp'],
|
|
'export auditability' => ['export', 'download', 'print', 'report'],
|
|
'safety and medical minimization' => ['emergency', 'guardian', 'incident', 'attendance'],
|
|
'finance dispute integrity' => ['payment', 'refund', 'transaction', 'finance'],
|
|
'class capacity and schedule safety' => ['classes', 'schedule', 'calendar', 'assign'],
|
|
'external integration callbacks' => ['paypal', 'payment-notification', 'verify-payment', 'sync'],
|
|
'file quarantine safety' => ['upload', 'import', 'document', 'media'],
|
|
];
|
|
|
|
foreach ($families as $label => $needles) {
|
|
$this->assertNotEmpty(
|
|
$this->apiRoutesContainingAny($needles),
|
|
'Batch 18 invariant family missing or renamed without updating risk register: '.$label
|
|
);
|
|
}
|
|
}
|
|
}
|