From 75a2dea3b1a13e9f096b29c9356da3c17a1cbc5f Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 16 Aug 2006 09:21:47 +0000 Subject: [PATCH] Minor testcase fix --- tests/QueryTestCase.php | 3 ++- tests/run.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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());