16 lines
383 B
PHP
16 lines
383 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class DownloadTest extends ShimmiePHPUnitTestCase
|
|
{
|
|
public function testView(): void
|
|
{
|
|
global $page;
|
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
|
|
$this->get_page("image/$image_id/moo.jpg");
|
|
$this->assertEquals(PageMode::FILE, $page->mode);
|
|
}
|
|
}
|