diff --git a/contrib/numeric_score/test.php b/contrib/numeric_score/test.php index 4c335d83..eebe0219 100644 --- a/contrib/numeric_score/test.php +++ b/contrib/numeric_score/test.php @@ -2,7 +2,7 @@ class NumericScoreTest extends ShimmieWebTestCase { function testNumericScore() { $this->log_in_as_user(); - $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot"); + $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); $this->get_page("post/view/$image_id"); $this->assertText("Current Score: 0"); $this->click("Vote Down"); @@ -11,6 +11,9 @@ class NumericScoreTest extends ShimmieWebTestCase { $this->assertText("Current Score: 1"); # FIXME: "remove vote" button? # FIXME: test that up and down are hidden if already voted up or down + + $this->get_page("post/list/score=1/1"); + $this->assertTitle("Image $image_id: pbx"); $this->log_out(); $this->log_in_as_admin();