<?php
class IcoHandlerTest extends ShimmieWebTestCase {
	function testPixelHander() {
		$this->log_in_as_user();
		$image_id = $this->post_image("favicon.ico", "shimmie favicon");
		$this->assert_response(302);
		$this->log_out();

		$raw = $this->get_page("get_ico/$image_id"); // test for no crash

		$this->log_in_as_admin();
		$this->delete_image($image_id);
		$this->log_out();

		# FIXME: test that the thumb works
		# FIXME: test that it gets displayed properly
	}
}
?>
