22 lines
730 B
PHP
22 lines
730 B
PHP
<?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']);
|
|
}
|
|
}
|