more numeric_score tests
This commit is contained in:
parent
46ce762949
commit
629c03036c
@ -16,6 +16,18 @@ class NumericScoreTest extends ShimmieWebTestCase {
|
|||||||
$this->get_page("post/list/score=1/1");
|
$this->get_page("post/list/score=1/1");
|
||||||
$this->assert_title("Image $image_id: pbx");
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
|
||||||
|
$this->get_page("post/list/score>0/1");
|
||||||
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
|
||||||
|
$this->get_page("post/list/score>-5/1");
|
||||||
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
|
||||||
|
$this->get_page("post/list/-score>5/1");
|
||||||
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
|
||||||
|
$this->get_page("post/list/-score<-5/1");
|
||||||
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
|
||||||
# test search by vote
|
# test search by vote
|
||||||
$this->get_page("post/list/upvoted_by=test/1");
|
$this->get_page("post/list/upvoted_by=test/1");
|
||||||
$this->assert_title("Image $image_id: pbx");
|
$this->assert_title("Image $image_id: pbx");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user