Skip to content

Commit

Permalink
psalm & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 9, 2020
1 parent 5b78fa6 commit 8342fa0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Expand Up @@ -33,10 +33,8 @@ public function testDisabledThePageFields(): void
$listener = new LegacyRoutingListener($this->createMock(TranslatorInterface::class));

$GLOBALS['TL_DCA']['tl_page']['palettes'] = ['root' => '', 'rootfallback' => ''];
$GLOBALS['TL_DCA']['tl_page']['fields'] = [
'urlPrefix' => [],
'urlSuffix' => [],
];
$GLOBALS['TL_DCA']['tl_page']['fields']['urlPrefix']['eval']['disabled'] = false;
$GLOBALS['TL_DCA']['tl_page']['fields']['urlSuffix']['eval']['disabled'] = false;

$listener->disableRoutingFields();

Expand Down
12 changes: 12 additions & 0 deletions core-bundle/tests/Functional/RoutingTest.php
Expand Up @@ -383,6 +383,10 @@ public function testResolvesAliasesWithLocale(array $fixtures, string $request,

/**
* @dataProvider getAliasesWithLocale
*
* @group legacy
*
* @expectedDeprecation The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.
*/
public function testResolvesAliasesWithLocaleInLegacyMode(array $fixtures, string $request, int $statusCode, string $pageTitle, array $query, string $host, bool $autoItem): void
{
Expand Down Expand Up @@ -686,6 +690,10 @@ public function testResolvesAliasesWithoutUrlSuffix(array $fixtures, string $req

/**
* @dataProvider getAliasesWithoutUrlSuffix
*
* @group legacy
*
* @expectedDeprecation The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.
*/
public function testResolvesAliasesWithoutUrlSuffixInLegacyMode(array $fixtures, string $request, int $statusCode, string $pageTitle, array $query, string $host, bool $autoItem): void
{
Expand Down Expand Up @@ -1031,6 +1039,10 @@ public function testResolvesTheRootPageWithLocale(array $fixtures, string $reque

/**
* @dataProvider getRootAliasesWithLocale
*
* @group legacy
*
* @expectedDeprecation The Contao\CoreBundle\Routing\FrontendLoader is deprecated. Use Symfony routing instead.
*/
public function testResolvesTheRootPageWithLocaleInLegacyMode(array $fixtures, string $request, int $statusCode, string $pageTitle, string $acceptLanguages, string $host): void
{
Expand Down

0 comments on commit 8342fa0

Please sign in to comment.