Development

Changeset 10133

You must first sign up to be able to contribute.

Changeset 10133

Show
Ignore:
Timestamp:
07/05/08 12:15:34 (5 months ago)
Author:
francois
Message:

more unit tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderRelationsTest.php

    r10132 r10133  
    7979$con = Propel::getConnection(); 
    8080 
    81 $t = new lime_test(72, new lime_output_color()); 
     81$t = new lime_test(77, new lime_output_color()); 
    8282 
    8383$t->diag('findRelation()'); 
     
    239239$t->is($article->getTitle(), 'aaaaa', 'joinXXX() does a join according to the XXX column name'); 
    240240 
     241$comment = sfPropelFinder::from('Comment')->join('Article')->join('Author')->where('Author.Name', 'John')->findOne(); 
     242$t->is($comment->getContent(), 'foo', 'you can add several join() statements'); 
     243$t->is($comment->getArticle()->getTitle(), 'aaaaa', 'you can add several join() statements'); 
     244$t->is($comment->getAuthor()->getName(), 'John', 'you can add several join() statements'); 
     245 
    241246$t->diag('leftJoin(), rightJoin(), innerJoin()'); 
    242247