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/ext/image/test.php

19 lines
465 B
PHP
Raw Normal View History

<?php
class ImageTest extends ShimmieWebTestCase {
public function testUserStats() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test");
$this->get_page("user/test");
$this->assertText("Images uploaded: 1");
$this->click("Images uploaded");
$this->assertTitle("Image $image_id: test");
$this->log_out();
$this->log_in_as_admin();
$this->delete_image($image_id);
$this->log_out();
}
}
?>