test mincount param
This commit is contained in:
parent
4e05d77484
commit
9caa3ca560
1 changed files with 18 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
class TagListTest extends ShimmieWebTestCase {
|
||||
var $pages = array("map", "alphabetic", "popularity", "categories");
|
||||
|
||||
function testTagList() {
|
||||
$this->get_page('tags/map');
|
||||
$this->assert_title('Tag List');
|
||||
|
@ -14,7 +16,22 @@ class TagListTest extends ShimmieWebTestCase {
|
|||
$this->assert_title('Tag List');
|
||||
|
||||
# FIXME: test that these show the right stuff
|
||||
# FIXME: test mincount
|
||||
}
|
||||
|
||||
function testMinCount() {
|
||||
foreach($this->pages as $page) {
|
||||
$this->get_page("tags/$page?mincount=999999");
|
||||
$this->assert_title("Tag List");
|
||||
|
||||
$this->get_page("tags/$page?mincount=1");
|
||||
$this->assert_title("Tag List");
|
||||
|
||||
$this->get_page("tags/$page?mincount=0");
|
||||
$this->assert_title("Tag List");
|
||||
|
||||
$this->get_page("tags/$page?mincount=-1");
|
||||
$this->assert_title("Tag List");
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue