test deleting one comment at a time

This commit is contained in:
Shish 2009-08-12 15:45:13 +01:00
parent f9b987a7ce
commit 4b3fb0de86

View File

@ -52,8 +52,27 @@ class CommentListTest extends ShimmieWebTestCase {
$this->log_in_as_admin();
$this->delete_image($image_id);
$this->log_out();
}
# FIXME: test deleting one comment at a time
function testSingleDel() {
$this->log_in_as_admin();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx");
# make a comment
$this->get_page("post/view/$image_id");
$this->setField('comment', "Test Comment ASDFASDF");
$this->click("Post Comment");
$this->assertTitle("Image $image_id: pbx");
$this->assertText("ASDFASDF");
# delete it
$this->click("Del");
$this->assertTitle("Image $image_id: pbx");
$this->assertNoText("ASDFASDF");
# tidy up
$this->delete_image($image_id);
$this->log_out();
}
}
?>