Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Apr 1, 2012
1 parent 2831f61 commit e24b144
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/index/test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function testIndexPage() {
$this->assert_title("Shimmie"); $this->assert_title("Shimmie");


$this->get_page('post/list/99999'); $this->get_page('post/list/99999');
$this->assert_title("Shimmie"); $this->assert_title("No Images Found");


$this->log_in_as_admin(); $this->log_in_as_admin();
$this->delete_image($image_id); $this->delete_image($image_id);
Expand All @@ -44,7 +44,7 @@ function testSearches() {


# regular tag, no results # regular tag, no results
$this->get_page('post/list/maumaumau/1'); $this->get_page('post/list/maumaumau/1');
$this->assert_title("maumaumau"); $this->assert_title("No Images Found");
$this->assert_text("No Images Found"); $this->assert_text("No Images Found");


# regular tag, many results # regular tag, many results
Expand Down
4 changes: 2 additions & 2 deletions ext/tag_edit/test.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ function testMassEdit() {
$this->assert_title("Image $image_id: pbx"); $this->assert_title("Image $image_id: pbx");


$this->get_page("admin"); $this->get_page("admin");
$this->assert_text("Mass Tag Edit"); // just test it exists $this->assert_text("Mass Tag Edit");
$this->set_field("search", "pbx"); $this->set_field("search", "pbx");
$this->set_field("replace", "pox"); $this->set_field("replace", "pox");
$this->click("Set"); $this->click("Replace");


$this->get_page("post/view/$image_id"); $this->get_page("post/view/$image_id");
$this->assert_title("Image $image_id: pox"); $this->assert_title("Image $image_id: pox");
Expand Down

0 comments on commit e24b144

Please sign in to comment.