Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c3a364

Browse filesBrowse 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
Copy full SHA for 2c3a364

File tree

2 files changed

+3
-0
lines changed
Filter options

2 files changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.