files('Domain/SchoolCore/Reporting') as $file) { $contents = file_get_contents($file); $this->assertStringNotContainsString('App\\Domain\\IslamicSundaySchool', $contents, $file); } } public function test_reporting_domain_does_not_use_request_or_auth_helpers(): void { foreach ($this->files('Domain/SchoolCore/Reporting') as $file) { $contents = file_get_contents($file); $this->assertStringNotContainsString('Illuminate\\Http\\Request', $contents, $file); $this->assertStringNotContainsString('auth()', $contents, $file); $this->assertStringNotContainsString('request()', $contents, $file); } } public function test_core_reporting_contracts_do_not_contain_extension_vocabulary(): void { $forbidden = ['quran', 'halaqa', 'masjid', 'ministry']; foreach ($this->files('Domain/SchoolCore/Reporting/Contracts') as $file) { $contents = strtolower(file_get_contents($file)); foreach ($forbidden as $term) { $this->assertStringNotContainsString($term, $contents, $file); } } } }