Changeset 3857

Show
Ignore:
Timestamp:
02/20/08 17:04:26 (17 months ago)
Author:
jwage
Message:

Added test for count() to make sure r3856 remains fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/tests/QueryTestCase.php

    r3209 r3857  
    102102        $this->assertEqual($q->parseClause("CONCAT('u.name', u.name)"), "CONCAT('u.name', e.name)"); 
    103103    } 
     104     
     105    public function testCountMaintainsParams() 
     106    { 
     107        $q = new Doctrine_Query(); 
     108        $q->from('User u'); 
     109        $q->leftJoin('u.Phonenumber p WITH p.id = ?', '11'); 
     110        $q->where('u.id = ?', '15'); 
     111         
     112        $this->assertTrue($q->count(), 1); 
     113    } 
    104114} 
    105115class MyQuery extends Doctrine_Query