Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c3a364

Browse files
minor #21198 [TwigBundle] Disable form in tests (chalasr)
This PR was merged into the 3.3-dev branch. Discussion ---------- [TwigBundle] Disable form in tests | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Tests are broken with high deps due to the changes made in #21196 > Symfony\Bundle\TwigBundle\Tests\NoTemplatingEntryTest::test Symfony\Component\DependencyInjection\Exception\LogicException: Form support cannot be enabled as the Translation component is not installed. > Symfony\Bundle\TwigBundle\Tests\NoTemplatingEntryTest::test Symfony\Component\DependencyInjection\Exception\LogicException: The Validator component is required to use the Form component. This will fix them. Commits ------- 2a279b9 [TwigBundle] Disable form in tests
2 parents 8e497f2 + 2a279b9 commit 2c3a364

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
9090
$loader->load(function ($container) {
9191
$container->loadFromExtension('framework', array(
9292
'secret' => '$ecret',
93+
'form' => array('enabled' => false),
9394
));
9495
});
9596

@@ -99,6 +100,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
99100
'secret' => '$ecret',
100101
'templating' => array('engines' => array('twig')),
101102
'router' => array('resource' => '%kernel.root_dir%/Resources/config/empty_routing.yml'),
103+
'form' => array('enabled' => false),
102104
));
103105
});
104106
}

src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
6262
$loader->load(function ($container) {
6363
$container->loadFromExtension('framework', array(
6464
'secret' => '$ecret',
65+
'form' => array('enabled' => false),
6566
));
6667
});
6768
}

0 commit comments

Comments
 (0)