From 8255b8b23972f8e6a12fba2d5754e2912f18e258 Mon Sep 17 00:00:00 2001 From: nikic Date: Wed, 21 Dec 2011 11:05:19 +0100 Subject: [PATCH] Fix test for previous commit --- test/Twig/Tests/Node/ForTest.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/Twig/Tests/Node/ForTest.php b/test/Twig/Tests/Node/ForTest.php index 1a9a418..f57d23a 100644 --- a/test/Twig/Tests/Node/ForTest.php +++ b/test/Twig/Tests/Node/ForTest.php @@ -32,7 +32,7 @@ class Twig_Tests_Node_ForTest extends Twig_Tests_Node_TestCase $this->assertEquals($seq, $node->getNode('seq')); $this->assertTrue($node->getAttribute('ifexpr')); $this->assertInstanceOf('Twig_Node_If', $node->getNode('body')); - $this->assertEquals($body, $node->getNode('body')->getNode('tests')->getNode(1)); + $this->assertEquals($body, $node->getNode('body')->getNode('tests')->getNode(1)->getNode(0)); $this->assertEquals(null, $node->getNode('else')); $else = new Twig_Node_Print(new Twig_Node_Expression_Name('foo', 0), 0); -- 1.7.2.5