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

20 lines
486 B
PHP
Raw Normal View History

2009-07-20 05:51:36 +00:00
<?php
class RandomTest extends ShimmieWebTestCase {
function testRandom() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "test");
$this->log_out();
$this->get_page("random_image/view");
2009-08-19 00:28:48 +00:00
$this->assert_title("Image $image_id: test");
2009-07-20 05:51:36 +00:00
$this->log_in_as_admin();
$this->delete_image($image_id);
$this->log_out();
# FIXME: test random_image/download
# FIXME: test random_image/ratio=4:3/download
}
}
?>