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

16 lines
442 B
PHP
Raw Normal View History

2009-07-20 05:51:36 +00:00
<?php
2015-09-20 21:40:04 +00:00
class RegenThumbTest extends ShimmiePHPUnitTestCase {
2015-09-26 10:17:13 +00:00
public function testRegenThumb() {
2009-07-20 05:51:36 +00:00
$this->log_in_as_admin();
2015-08-09 11:14:28 +00:00
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
2012-03-09 22:08:55 +00:00
$this->get_page("post/view/$image_id");
2015-09-20 20:20:28 +00:00
$_POST['image_id'] = $image_id;
$this->get_page("regen_thumb");
2009-08-19 00:28:48 +00:00
$this->assert_title("Thumbnail Regenerated");
2009-07-20 05:51:36 +00:00
# FIXME: test that the thumb's modified time has been updated
}
}