<?php
class RSSImagesTest extends ShimmieWebTestCase {
function testImageFeed() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot");
$this->log_out();
$this->get_page('rss/images');
$this->assert_mime("application/rss+xml");
$this->assert_no_text("Exception");
$this->get_page('rss/images/1');
# FIXME: test that the image is actually found
$this->get_page('rss/images/computer/1');
# valid tag, invalid page
$this->get_page('rss/images/computer/2');
# not found
$this->get_page('rss/images/waffle/2');
$this->log_in_as_admin();
$this->delete_image($image_id);
}
?>