From f0b9f8909dc92a5e93bc4c3e112c6aaa1ac3fe22 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 5 Apr 2010 16:50:54 +0100 Subject: [PATCH] test another path --- ext/index/test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/index/test.php b/ext/index/test.php index 03e110d1..e86ed088 100644 --- a/ext/index/test.php +++ b/ext/index/test.php @@ -72,6 +72,11 @@ class IndexTest extends ShimmieWebTestCase { $this->assert_title("computer size=640x480"); $this->assert_no_text("No Images Found"); + # multiple tags, one of which doesn't exist + # (test the "one tag doesn't exist = no hits" path) + $this->get_page('post/list/computer%20asdfasdfwaffle/1'); + $this->assert_text("No Images Found"); + # multiple tags, single result; search with one result = direct to image $this->get_page('post/list/screenshot%20computer/1'); $this->assert_title(new PatternExpectation("/^Image $image_id_1: /"));