8000 Merge branch '6.4' into 7.0 · symfony/symfony@7ab9a44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ab9a44

Browse files
Merge branch '6.4' into 7.0
* 6.4: [TwigBridge] Accomodate for changes in Twig
2 parents adcadd1 + 0458c9b commit 7ab9a44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public function testCompile()
4747
{
4848
$form = new NameExpression('form', 0);
4949
$resources = new ArrayExpression([
50-
new ConstantExpression(0, 0),
51-
new ConstantExpression('tpl1', 0),
5250
new ConstantExpression(1, 0),
51+
new ConstantExpression('tpl1', 0),
52+
new ConstantExpression(0, 0),
5353
new ConstantExpression('tpl2', 0),
5454
], 0);
5555

@@ -62,7 +62,7 @@ public function testCompile()
6262

6363
$this->assertEquals(
6464
sprintf(
65-
'$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], true);',
65+
'$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], true);',
6666
$this->getVariableGetter('form')
6767
),
6868
trim($compiler->compile($node)->getSource())
@@ -72,7 +72,7 @@ public function testCompile()
7272

7373
$this->assertEquals(
7474
sprintf(
75-
'$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], false);',
75+
'$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], false);',
7676
$this->getVariableGetter('form')
7777
),
7878
trim($compiler->compile($node)->getSource())

0 commit comments

Comments
 (0)
0