<?php
class ReportImageTest extends ShimmieWebTestCase {
function testReportImage() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot");
$this->get_page("post/view/$image_id");
$this->set_field('reason', "report details");
$this->click("Report");
$this->log_out();
$this->log_in_as_admin();
$this->get_page("image_report/list");
$this->assert_title("Reported Images");
$this->assert_text("report details");
$this->click("Remove Report");
$this->assert_no_text("report details");
$this->delete_image($image_id);
# FIXME: test delete image from report screen
# FIXME: test that >>123 works
}
?>