2009-07-16 20:21:49 +01:00
|
|
|
<?php
|
|
|
|
class IcoHandlerTest extends ShimmieWebTestCase {
|
|
|
|
function testPixelHander() {
|
|
|
|
$this->log_in_as_user();
|
2012-03-10 15:29:42 +00:00
|
|
|
$image_id = $this->post_image("lib/static/favicon.ico", "shimmie favicon");
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_response(302);
|
2009-07-16 20:21:49 +01:00
|
|
|
$this->log_out();
|
|
|
|
|
2014-03-30 13:26:48 +01:00
|
|
|
$this->get_page("post/view/$image_id"); // test for no crash
|
|
|
|
$this->get_page("get_ico/$image_id"); // test for no crash
|
2009-09-27 15:48:38 +01:00
|
|
|
|
2009-07-16 20:21:49 +01:00
|
|
|
$this->log_in_as_admin();
|
|
|
|
$this->delete_image($image_id);
|
|
|
|
$this->log_out();
|
2009-07-20 06:51:36 +01:00
|
|
|
|
|
|
|
# FIXME: test that the thumb works
|
|
|
|
# FIXME: test that it gets displayed properly
|
2009-07-16 20:21:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|