ico testing

This commit is contained in:
Shish 2012-03-10 15:29:42 +00:00
parent 4c204a2bc1
commit d4d2afdd24

View file

@ -2,10 +2,11 @@
class IcoHandlerTest extends ShimmieWebTestCase {
function testPixelHander() {
$this->log_in_as_user();
$image_id = $this->post_image("favicon.ico", "shimmie favicon");
$image_id = $this->post_image("lib/static/favicon.ico", "shimmie favicon");
$this->assert_response(302);
$this->log_out();
$raw = $this->get_page("post/view/$image_id"); // test for no crash
$raw = $this->get_page("get_ico/$image_id"); // test for no crash
$this->log_in_as_admin();