From 56446b867fbf1bac633d5f36d82862f6faf7a325 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 12 Mar 2010 17:57:21 +0000 Subject: [PATCH] test generation of the actual map --- contrib/sitemap/test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/sitemap/test.php b/contrib/sitemap/test.php index 8f387777..0c12681e 100644 --- a/contrib/sitemap/test.php +++ b/contrib/sitemap/test.php @@ -5,5 +5,17 @@ class XMLSitemapTest extends SCoreWebTestCase { # PHP-level error messages $this->get_page('sitemap.xml'); } + + function testImage() { + $this->log_in_as_user(); + $image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx"); + $this->log_out(); + + $this->get_page('sitemap.xml'); + + $this->log_in_as_admin(); + $this->delete_image($image_id); + $this->log_out(); + } } ?>