Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Jan 11, 2024
1 parent 1412912 commit d015f64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions core-bundle/contao/config/config.php
Expand Up @@ -338,6 +338,7 @@
(
'regular' => PageRegular::class,
'forward' => PageForward::class,
'redirect' => PageRedirect::class,
'logout' => PageLogout::class,
'error_401' => PageError401::class,
'error_403' => PageError403::class,
Expand Down
16 changes: 0 additions & 16 deletions core-bundle/tests/Routing/Page/PageRegistryTest.php
Expand Up @@ -58,22 +58,6 @@ public function testReturnsParameteredPageRouteIfPathIsNullWithRequireItem(): vo
$this->assertSame('/.+?', $route->getRequirement('parameters'));
}

public function testReturnsUnparameteredPageRouteForForwardPages(): void
{
$pageModel = $this->mockClassWithProperties(PageModel::class, [
'type' => 'forward',
'alias' => 'bar',
'urlPrefix' => 'foo',
'urlSuffix' => '.baz',
]);

$registry = new PageRegistry($this->createMock(Connection::class));
$route = $registry->getRoute($pageModel);

$this->assertSame('/foo/bar.baz', $route->getPath());
$this->assertNull($route->getDefault('parameters'));
}

public function testReturnsParameteredPageRouteIfTheAlwaysForwardOptionIsSet(): void
{
$pageModel = $this->mockClassWithProperties(PageModel::class, [
Expand Down

0 comments on commit d015f64

Please sign in to comment.