Changeset 5094

Show
Ignore:
Timestamp:
10/15/08 21:39:06 (9 months ago)
Author:
jwage
Message:

[1.0, 1.1] addresses #1341 updated test again to fail differently.

Location:
branches
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/tests/Ticket/1341TestCase.php

    r5093 r5094  
    6060              ), 
    6161            )); 
    62         $q = Doctrine_Query::create() 
    63             ->from('Ticket_1341_User u') 
    64             ->leftJoin('u.Profile p'); 
    65         $users = $q->execute(); 
     62            $q = Doctrine_Query::create() 
     63                ->from('Ticket_1341_User u') 
     64                ->leftJoin('u.Profile p'); 
     65            $this->assertEqual($q->getSql(), 'SELECT t.id AS t__id, t.username AS t__username, t.password AS t__password, t2.id AS t2__id, t2.name AS t2__name, t2.userid AS t2__userid FROM ticket_1341__user t LEFT JOIN ticket_1341__profile t2 ON t.id = t2.userid'); 
    6666        } catch (Exception $e) { 
    6767            $this->fail($e->getMessage()); 
  • branches/1.1/tests/Ticket/1341TestCase.php

    r5093 r5094  
    6363                ->from('Ticket_1341_User u') 
    6464                ->leftJoin('u.Profile p'); 
    65             $users = $q->execute(); 
     65            $this->assertEqual($q->getSql(), 'SELECT t.id AS t__id, t.username AS t__username, t.password AS t__password, t2.id AS t2__id, t2.name AS t2__name, t2.userid AS t2__userid FROM ticket_1341__user t LEFT JOIN ticket_1341__profile t2 ON t.id = t2.userid'); 
    6666        } catch (Exception $e) { 
    6767            $this->fail($e->getMessage());