15 lines
408 B
PHP
Raw Normal View History

2009-07-16 20:21:49 +01:00
<?php
2015-08-09 12:14:28 +01:00
class SVGHandlerTest { // extends ShimmiePHPUnitTestCase {
2009-07-16 20:21:49 +01:00
function testSVGHander() {
$this->log_in_as_user();
2015-08-09 12:14:28 +01:00
$image_id = $this->post_image("tests/test.svg", "something");
2009-08-19 01:28:48 +01:00
$this->assert_response(302);
2009-07-16 20:21:49 +01:00
2009-09-27 15:48:38 +01:00
$raw = $this->get_page("get_svg/$image_id");
$this->assertTrue(strpos($raw, "www.w3.org") > 0);
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
}
}