From 832461a5f556df7933fd82e75b097d76182c640b Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 20 Jul 2023 18:28:53 +0200 Subject: [PATCH] [TwigBridge] Accomodate for changes in Twig --- Tests/Node/FormThemeTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/Node/FormThemeTest.php b/Tests/Node/FormThemeTest.php index ab45b83f..cf981912 100644 --- a/Tests/Node/FormThemeTest.php +++ b/Tests/Node/FormThemeTest.php @@ -47,9 +47,9 @@ public function testCompile() { $form = new NameExpression('form', 0); $resources = new ArrayExpression([ - new ConstantExpression(0, 0), - new ConstantExpression('tpl1', 0), new ConstantExpression(1, 0), + new ConstantExpression('tpl1', 0), + new ConstantExpression(0, 0), new ConstantExpression('tpl2', 0), ], 0); @@ -62,7 +62,7 @@ public function testCompile() $this->assertEquals( sprintf( - '$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], true);', + '$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], true);', $this->getVariableGetter('form') ), trim($compiler->compile($node)->getSource()) @@ -72,7 +72,7 @@ public function testCompile() $this->assertEquals( sprintf( - '$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [0 => "tpl1", 1 => "tpl2"], false);', + '$this->env->getRuntime("Symfony\\\\Component\\\\Form\\\\FormRenderer")->setTheme(%s, [1 => "tpl1", 0 => "tpl2"], false);', $this->getVariableGetter('form') ), trim($compiler->compile($node)->getSource())