test mincount param

This commit is contained in:
Shish 2010-04-21 17:09:58 +01:00
parent 4e05d77484
commit 9caa3ca560

View file

@ -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");
}
}
}
?>