Changeset 3956

Show
Ignore:
Timestamp:
03/09/08 02:02:16 (16 months ago)
Author:
jwage
Message:

Fixed incorrect test case.

Location:
branches/0.10
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Query.php

    r3947 r3956  
    503503        $fields = $this->_pendingFields[$componentAlias]; 
    504504 
    505  
    506505        // check for wildcards 
    507506        if (in_array('*', $fields)) { 
  • branches/0.10/tests/DataType/EnumTestCase.php

    r3884 r3956  
    7474        $query = new Doctrine_Query($this->connection); 
    7575        $query->update('EnumTest2 u') 
    76             ->set('u.status', '?', 'verified') 
    77             ->execute(); 
     76            ->set('u.status', '?', 'verified'); 
     77 
     78        $this->assertEqual($query->getSql(), 'UPDATE enum_test2 SET status = ?');    
     79 
     80        $query->execute(); 
    7881 
    7982        try { 
     
    99102        try { 
    100103            $query = new Doctrine_Query($this->connection); 
    101             $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'") 
     104            $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = ?") 
    102105              ->count(array('open')); 
    103106            $this->assertEqual($ret, 1); 
     
    105108            $this->fail(); 
    106109        } 
    107  
    108  
    109110    } 
    110111