From 8d1be429249dc925f5e03feae82b49c6e8438414 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Tue, 16 Jun 2015 21:56:25 +0200 Subject: [PATCH] [DDC-3741] Add test for AbstractQuery#setHydrationCacheProfile(null) --- tests/Doctrine/Tests/ORM/Query/QueryTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Query/QueryTest.php b/tests/Doctrine/Tests/ORM/Query/QueryTest.php index 34194bf8f..dd509eea2 100644 --- a/tests/Doctrine/Tests/ORM/Query/QueryTest.php +++ b/tests/Doctrine/Tests/ORM/Query/QueryTest.php @@ -197,4 +197,15 @@ class QueryTest extends \Doctrine\Tests\OrmTestCase $q2 = clone $query; $this->assertSame($config->getDefaultQueryHints(), $q2->getHints()); } + + /** + * @group DDC-3741 + */ + public function testSetHydrationCacheProfileNull() + { + $query = $this->_em->createQuery(); + $query->setHydrationCacheProfile(null); + + $this->assertNull($query->getHydrationCacheProfile()); + } }