replace numeric_score 'favorite' with 'upvoted_by=name' (and add the same for downvote)

This commit is contained in:
Shish
2009-08-13 19:26:23 +01:00
parent 9aa54af90a
commit 28fd3e311f
3 changed files with 31 additions and 3 deletions

View File

@ -12,8 +12,16 @@ class NumericScoreTest extends ShimmieWebTestCase {
# FIXME: "remove vote" button?
# FIXME: test that up and down are hidden if already voted up or down
# test search by score
$this->get_page("post/list/score=1/1");
$this->assertTitle("Image $image_id: pbx");
# test search by vote
$this->get_page("post/list/upvoted_by=demo/1");
$this->assertTitle("Image $image_id: pbx");
$this->get_page("post/list/downvoted_by=demo/1");
$this->assertTitle("Image $image_id: pbx");
$this->log_out();
$this->log_in_as_admin();