This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/contrib/image_hash_ban/test.php

16 lines
338 B
PHP
Raw Normal View History

2012-03-10 17:40:11 +00:00
<?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->log_out();
}
}
?>