Files
2026-05-30 01:11:35 -04:00

22 lines
627 B
PHP

<?php declare(strict_types=1);
namespace Tests\Architecture;
use PHPUnit\Framework\TestCase;
use Tests\Architecture\Concerns\ScansArchitecture;
final class FinanceBoundaryTest extends TestCase
{
use ScansArchitecture;
public function test_finance_module_does_not_use_float_money_math(): void
{
$this->assertFilesDoNotContain('app/Domain/SchoolCore/Finance', ['(float)', 'floatval(']);
}
public function test_finance_controllers_do_not_download_payment_files_directly(): void
{
$this->assertFilesDoNotContain('app/Http/Controllers/Api/V2/Finance', ['response()->download']);
}
}