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 ReportingBoundaryTest extends TestCase
|
||||
{
|
||||
use ScansArchitecture;
|
||||
|
||||
public function test_reporting_controllers_do_not_build_sql_or_export_directly(): void
|
||||
{
|
||||
$this->assertFilesDoNotContain('app/Http/Controllers/Api/V2/Reporting', ['DB::', 'select(', 'join(', 'fputcsv', 'Xlsx']);
|
||||
}
|
||||
|
||||
public function test_schoolcore_reporting_provider_does_not_register_extension_reports(): void
|
||||
{
|
||||
$this->assertFilesDoNotContain('app/Providers', ['IslamicSundaySchool\\Reporting\\Reports'], ['IslamicSundaySchoolReportingServiceProvider.php']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user