assertSame('Ministra', $rAlias, 'type ' . $rCodeType); $this->assertDirectoryExists(MAIN_HOME . $rAlias, 'type ' . $rCodeType); $this->assertFileExists(MAIN_HOME . $rAlias . '/portal.php', 'type ' . $rCodeType); $this->assertSame(50, $rBurst); } $this->assertSame('ministra/new', AuthRepository::codeLocation(5)[0], 'the XC_SCOPE deployed configs and Public/index.php know'); } public function testEveryDirectoryAliasExists(): void { // 1 and 3/4 name no directory: their requests all fall through to the // front controller (see the NOTE in codeLocation()). foreach ([0, 2, 5, 6, 7, 8] as $rCodeType) { $this->assertDirectoryExists(MAIN_HOME . AuthRepository::codeLocation($rCodeType)[1], 'type ' . $rCodeType); } } public function testAnUnknownTypeIsAnAdminCode(): void { $this->assertSame(['admin', 'Public/Views/admin', 500], AuthRepository::codeLocation(99)); $this->assertSame(AuthRepository::codeLocation(0), AuthRepository::codeLocation(99)); } }