forked from fa/breadcrumb-the-shire
fix(routing): prevent login redirect loops on alias targets
This commit is contained in:
@@ -138,6 +138,21 @@ final class ModuleRegistryTest extends TestCase
|
||||
ModuleRegistry::boot($this->fixturesDir, ['mod-a', 'mod-b']);
|
||||
}
|
||||
|
||||
public function testPublicRouteAddsPathAndTargetToPublicPaths(): void
|
||||
{
|
||||
$this->createModuleManifest('mod-public', [
|
||||
'id' => 'mod-public',
|
||||
'routes' => [
|
||||
['path' => 'public/entry', 'target' => 'public/internal', 'public' => true],
|
||||
],
|
||||
]);
|
||||
|
||||
$registry = ModuleRegistry::boot($this->fixturesDir, ['mod-public']);
|
||||
|
||||
self::assertContains('public/entry', $registry->getPublicPaths());
|
||||
self::assertContains('public/internal', $registry->getPublicPaths());
|
||||
}
|
||||
|
||||
public function testUiSlotConflictThrows(): void
|
||||
{
|
||||
$panelTemplateA = $this->createFixtureFile('mod-a-panel.phtml', '<ul></ul>');
|
||||
|
||||
Reference in New Issue
Block a user