diff --git a/tests/QueryTestCase.php b/tests/QueryTestCase.php index 71d976148..ea82df5dd 100644 --- a/tests/QueryTestCase.php +++ b/tests/QueryTestCase.php @@ -976,7 +976,8 @@ class Doctrine_QueryTestCase extends Doctrine_UnitTestCase { $this->assertEqual($query->limit, 10); $this->assertTrue(strpos($query->getQuery(),"LIMIT")); - $query->limit = null; + $query->remove('limit')->remove('offset'); + $this->assertFalse(strpos($query->getQuery(),"LIMIT")); $coll = $query->execute(); diff --git a/tests/run.php b/tests/run.php index 36b319269..1ade3d1ce 100644 --- a/tests/run.php +++ b/tests/run.php @@ -28,7 +28,7 @@ require_once("QueryLimitTestCase.php"); error_reporting(E_ALL); $test = new GroupTest("Doctrine Framework Unit Tests"); -/** + $test->addTestCase(new Doctrine_RecordTestCase()); $test->addTestCase(new Doctrine_SessionTestCase()); @@ -66,7 +66,7 @@ $test->addTestCase(new Doctrine_ValidatorTestCase()); $test->addTestCase(new Doctrine_CollectionTestCase()); $test->addTestCase(new Doctrine_QueryTestCase()); -*/ + $test->addTestCase(new Doctrine_Query_Limit_TestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase());