From 0a435449b9997ccc11a4e4af69d3a60c9e0bdc1b Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 10 Mar 2012 17:39:38 +0000 Subject: [PATCH] feature testing --- contrib/featured/test.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/featured/test.php b/contrib/featured/test.php index 24c17651..293efe69 100644 --- a/contrib/featured/test.php +++ b/contrib/featured/test.php @@ -13,14 +13,21 @@ class FeaturedTest extends ShimmieWebTestCase { $this->click("Feature This"); $this->get_page("post/list"); $this->assert_text("Featured Image"); + + # FIXME: test changing from one feature to another + + $this->get_page("featured_image/download"); + $this->assert_response(200); + + $this->get_page("featured_image/view"); + $this->assert_response(200); + $this->delete_image($image_id); $this->log_out(); # after deletion, there should be no feature $this->get_page("post/list"); $this->assert_no_text("Featured Image"); - - # FIXME: test changing from one feature to another } } ?>