2009-08-03 18:35:32 +01:00
|
|
|
<?php
|
2010-03-12 20:30:49 +00:00
|
|
|
class XMLSitemapTest extends ShimmieWebTestCase {
|
2009-08-03 18:35:32 +01:00
|
|
|
function testBasic() {
|
|
|
|
# this will implicitly check that there are no
|
|
|
|
# PHP-level error messages
|
|
|
|
$this->get_page('sitemap.xml');
|
|
|
|
}
|
2010-03-12 17:57:21 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
2009-08-03 18:35:32 +01:00
|
|
|
}
|
|
|
|
?>
|