22 lines
676 B
PHP
22 lines
676 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Tests\Architecture;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Tests\Architecture\Concerns\ScansArchitecture;
|
|
|
|
final class ModuleBoundaryTest extends TestCase
|
|
{
|
|
use ScansArchitecture;
|
|
|
|
public function test_school_core_does_not_depend_on_islamic_sunday_school(): void
|
|
{
|
|
$this->assertFilesDoNotContain('app/Domain/SchoolCore', ['App\\Domain\\IslamicSundaySchool']);
|
|
}
|
|
|
|
public function test_core_contracts_use_neutral_vocabulary(): void
|
|
{
|
|
$this->assertFilesDoNotContain('app/Domain/SchoolCore', ['Quran', "Qur'an", 'Halaqa', 'Masjid', 'Imam', 'Sadaqah', 'Zakat', 'ArabicLevel'], ['README.md']);
|
|
}
|
|
}
|