2008-10-18 10:00:34 +00:00
|
|
|
<?php
|
2009-07-15 02:42:18 +01:00
|
|
|
class RSSCommentsTest extends ShimmieWebTestCase {
|
2008-10-18 10:00:34 +00:00
|
|
|
function testImageFeed() {
|
2009-09-20 03:58:50 +01:00
|
|
|
$this->log_in_as_user();
|
|
|
|
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx");
|
|
|
|
$this->get_page("post/view/$image_id");
|
|
|
|
$this->set_field('comment', "Test Comment ASDFASDF");
|
|
|
|
$this->click("Post Comment");
|
|
|
|
$this->assert_text("ASDFASDF");
|
|
|
|
$this->log_out();
|
|
|
|
|
2009-07-15 02:42:18 +01:00
|
|
|
$this->get_page('rss/comments');
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_mime("application/rss+xml");
|
|
|
|
$this->assert_no_text("Exception");
|
2009-09-20 03:58:50 +01:00
|
|
|
$this->assert_text("ASDFASDF");
|
2009-07-20 06:51:36 +01:00
|
|
|
|
2009-09-20 03:58:50 +01:00
|
|
|
$this->log_in_as_admin();
|
|
|
|
$this->delete_image($image_id);
|
|
|
|
$this->log_out();
|
2008-10-18 10:00:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|