2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2020-01-28 21:19:59 +00:00
|
|
|
class PixelFileHandlerTest extends ShimmiePHPUnitTestCase
|
2019-05-28 17:59:38 +01:00
|
|
|
{
|
|
|
|
public function testPixelHander()
|
|
|
|
{
|
|
|
|
$this->log_in_as_user();
|
|
|
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
|
2020-01-29 20:22:50 +00:00
|
|
|
$page = $this->get_page("post/view/$image_id");
|
|
|
|
$this->assertEquals(200, $page->code);
|
2019-05-28 17:59:38 +01:00
|
|
|
//$this->assert_response(302);
|
2009-07-20 06:51:36 +01:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
# FIXME: test that the thumb works
|
|
|
|
# FIXME: test that it gets displayed properly
|
|
|
|
}
|
2009-07-16 20:21:49 +01:00
|
|
|
}
|