test wildcards

This commit is contained in:
Shish 2010-04-05 16:55:13 +01:00
parent a8e7389afe
commit 1ede4443fc

View file

@ -86,6 +86,8 @@ class IndexTest extends ShimmieWebTestCase {
//$this->assert_title(new PatternExpectation("/^Image $image_id_2: /")); //$this->assert_title(new PatternExpectation("/^Image $image_id_2: /"));
# test various search methods # test various search methods
$this->get_page("post/list/bedroo*/1");
$this->assert_title(new PatternExpectation("/^Image $image_id_2: /"));
$this->get_page("post/list/id=$image_id_1/1"); $this->get_page("post/list/id=$image_id_1/1");
$this->assert_title(new PatternExpectation("/^Image $image_id_1: /")); $this->assert_title(new PatternExpectation("/^Image $image_id_1: /"));
$this->assert_no_text("No Images Found"); $this->assert_no_text("No Images Found");