update project
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user