Changeset 9275
- Timestamp:
- 05/26/08 17:12:37 (5 years ago)
- Files:
-
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7-alpha/lib/sfPropelActAsRatableBehavior.class.php (modified) (1 diff)
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7-alpha/test/unit/sfPropelActAsRatableBehaviorTest.php (modified) (2 diffs)
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7.1/lib/sfPropelActAsRatableBehavior.class.php (modified) (1 diff)
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7.1/test/unit/sfPropelActAsRatableBehaviorTest.php (modified) (2 diffs)
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.1/lib/sfPropelActAsRatableBehavior.class.php (modified) (1 diff)
- plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.1/test/unit/sfPropelActAsRatableBehaviorTest.php (modified) (2 diffs)
- plugins/sfPropelActAsRatableBehaviorPlugin/trunk/lib/sfPropelActAsRatableBehavior.class.php (modified) (1 diff)
- plugins/sfPropelActAsRatableBehaviorPlugin/trunk/test/unit/sfPropelActAsRatableBehaviorTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7-alpha/lib/sfPropelActAsRatableBehavior.class.php
r9271 r9275 384 384 return $rating_object->getRating(); 385 385 } 386 return false; 386 387 } 387 388 plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7-alpha/test/unit/sfPropelActAsRatableBehaviorTest.php
r5212 r9275 32 32 33 33 // start tests 34 $t = new lime_test(4 7, new lime_output_color());34 $t = new lime_test(48, new lime_output_color()); 35 35 36 36 try … … 127 127 128 128 # User 2 rate object 1 129 $t->cmp_ok($obj->getUserRating($user_2_id), '===', false, 'getUserRating() user has not been rated'); 129 130 $u2_rating = 5; 130 131 $t->ok($obj->setRating($u2_rating, $user_2_hash), 'setRating() Object rated by user 2 to '.$u2_rating); plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7.1/lib/sfPropelActAsRatableBehavior.class.php
r9271 r9275 362 362 return $rating_object->getRating(); 363 363 } 364 return false; 364 365 } 365 366 plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.0/0.7.1/test/unit/sfPropelActAsRatableBehaviorTest.php
r5254 r9275 28 28 29 29 // start tests 30 $t = new lime_test(4 6, new lime_output_color());30 $t = new lime_test(47, new lime_output_color()); 31 31 32 32 // initialize database manager … … 138 138 # User 2 rate object 1 139 139 $u2_rating = 5; 140 $t->cmp_ok($obj->getUserRating($user_2_id), '===', false, 'getUserRating() user has not been rated'); 140 141 $t->ok($obj->setRating($u2_rating, $user_2_id), 'setRating() Object rated by user 2 to '.$u2_rating); 141 142 $t->ok($obj->hasBeenRated(), 'hasBeenRated() Object has been rated'); plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.1/lib/sfPropelActAsRatableBehavior.class.php
r9271 r9275 362 362 return $rating_object->getRating(); 363 363 } 364 return false; 364 365 } 365 366 plugins/sfPropelActAsRatableBehaviorPlugin/branches/1.1/test/unit/sfPropelActAsRatableBehaviorTest.php
r5254 r9275 28 28 29 29 // start tests 30 $t = new lime_test(4 6, new lime_output_color());30 $t = new lime_test(47, new lime_output_color()); 31 31 32 32 // initialize database manager … … 137 137 138 138 # User 2 rate object 1 139 $t->cmp_ok($obj->getUserRating($user_2_id), '===', false, 'getUserRating() user has not been rated'); 139 140 $u2_rating = 5; 140 141 $t->ok($obj->setRating($u2_rating, $user_2_id), 'setRating() Object rated by user 2 to '.$u2_rating); plugins/sfPropelActAsRatableBehaviorPlugin/trunk/lib/sfPropelActAsRatableBehavior.class.php
r9271 r9275 362 362 return $rating_object->getRating(); 363 363 } 364 return false; 364 365 } 365 366 plugins/sfPropelActAsRatableBehaviorPlugin/trunk/test/unit/sfPropelActAsRatableBehaviorTest.php
r5254 r9275 28 28 29 29 // start tests 30 $t = new lime_test(4 6, new lime_output_color());30 $t = new lime_test(47, new lime_output_color()); 31 31 32 32 // initialize database manager … … 137 137 138 138 # User 2 rate object 1 139 $t->cmp_ok($obj->getUserRating($user_2_id), '===', false, 'getUserRating() user has not been rated'); 139 140 $u2_rating = 5; 140 141 $t->ok($obj->setRating($u2_rating, $user_2_id), 'setRating() Object rated by user 2 to '.$u2_rating);