<?php
class HashBanTest extends ShimmieWebTestCase {
function testBan() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx");
$this->log_out();
$this->log_in_as_admin();
$this->get_page("post/view/$image_id");
$this->click("Ban and Delete");
$this->assert_response(404);
$this->get_page("image_hash_ban/list/1");
$this->click("Remove");
$this->assert_response(200);
$this->delete_image($image_id);
}
?>