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
2024-02-10 18:35:55 +00:00

20 lines
522 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class RegenThumbTest extends ShimmiePHPUnitTestCase
{
public function testRegenThumb(): void
{
$this->log_in_as_admin();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
$this->get_page("post/view/$image_id");
$this->post_page("regen_thumb/one/$image_id");
$this->assert_title("Thumbnail Regenerated");
# FIXME: test that the thumb's modified time has been updated
}
}