Changeset 10133
- Timestamp:
- 07/05/08 12:15:34 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelFinderPlugin/test/unit/sfPropelFinderRelationsTest.php
r10132 r10133 79 79 $con = Propel::getConnection(); 80 80 81 $t = new lime_test(7 2, new lime_output_color());81 $t = new lime_test(77, new lime_output_color()); 82 82 83 83 $t->diag('findRelation()'); … … 239 239 $t->is($article->getTitle(), 'aaaaa', 'joinXXX() does a join according to the XXX column name'); 240 240 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 241 246 $t->diag('leftJoin(), rightJoin(), innerJoin()'); 242 247