test searching by score
This commit is contained in:
parent
4b3fb0de86
commit
44e3abe16e
@ -2,7 +2,7 @@
|
|||||||
class NumericScoreTest extends ShimmieWebTestCase {
|
class NumericScoreTest extends ShimmieWebTestCase {
|
||||||
function testNumericScore() {
|
function testNumericScore() {
|
||||||
$this->log_in_as_user();
|
$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->get_page("post/view/$image_id");
|
||||||
$this->assertText("Current Score: 0");
|
$this->assertText("Current Score: 0");
|
||||||
$this->click("Vote Down");
|
$this->click("Vote Down");
|
||||||
@ -11,6 +11,9 @@ class NumericScoreTest extends ShimmieWebTestCase {
|
|||||||
$this->assertText("Current Score: 1");
|
$this->assertText("Current Score: 1");
|
||||||
# FIXME: "remove vote" button?
|
# FIXME: "remove vote" button?
|
||||||
# FIXME: test that up and down are hidden if already voted up or down
|
# 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_out();
|
||||||
|
|
||||||
$this->log_in_as_admin();
|
$this->log_in_as_admin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user