From 441634342562edcb37e138edae86cbd32f87788c Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 22 Mar 2010 14:42:23 +0000 Subject: [PATCH] more code coverage --- contrib/numeric_score/test.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contrib/numeric_score/test.php b/contrib/numeric_score/test.php index 0be94617..3908b52b 100644 --- a/contrib/numeric_score/test.php +++ b/contrib/numeric_score/test.php @@ -24,6 +24,17 @@ class NumericScoreTest extends ShimmieWebTestCase { # and downvote $this->get_page("post/list/downvoted_by=test/1"); $this->assert_text("No Images Found"); + + # test errors + $this->get_page("post/list/upvoted_by=asdfasdf/1"); + $this->assert_text("No Images Found"); + $this->get_page("post/list/downvoted_by=asdfasdf/1"); + $this->assert_text("No Images Found"); + $this->get_page("post/list/upvoted_by_id=0/1"); + $this->assert_text("No Images Found"); + $this->get_page("post/list/downvoted_by_id=0/1"); + $this->assert_text("No Images Found"); + $this->log_out(); $this->log_in_as_admin();