hash ban test
This commit is contained in:
parent
0a435449b9
commit
582c49ee0e
15
contrib/image_hash_ban/test.php
Normal file
15
contrib/image_hash_ban/test.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user