From c77dbd859b038938e643bc4186d1ef2e3a7e5fe8 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 20 Mar 2011 12:25:27 +0100 Subject: [PATCH] [DDC-1070] Fix global test state problem introduced with test. --- tests/Doctrine/Tests/ORM/Functional/QueryTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/QueryTest.php b/tests/Doctrine/Tests/ORM/Functional/QueryTest.php index 66785898e..567b3ff8e 100644 --- a/tests/Doctrine/Tests/ORM/Functional/QueryTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/QueryTest.php @@ -155,6 +155,7 @@ class QueryTest extends \Doctrine\Tests\OrmFunctionalTestCase $this->_em->flush(); $this->_em->clear(); + $articleId = $article1->id; $query = $this->_em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.topic = ?1"); $articles = $query->iterate(array(1 => 'Doctrine 2'), Query::HYDRATE_ARRAY); @@ -165,7 +166,7 @@ class QueryTest extends \Doctrine\Tests\OrmFunctionalTestCase } $this->assertEquals(1, count($found)); $this->assertEquals(array( - array(array('id' => 1, 'topic' => 'Doctrine 2', 'text' => 'This is an introduction to Doctrine 2.', 'version' => 1)) + array(array('id' => $articleId, 'topic' => 'Doctrine 2', 'text' => 'This is an introduction to Doctrine 2.', 'version' => 1)) ), $found); }