23 lines
585 B
PHP
Raw Normal View History

<?php
2015-08-09 12:14:28 +01:00
class RSSCommentsTest {
function testImageFeed() {
$this->log_in_as_user();
2015-08-09 12:14:28 +01:00
$image_id = $this->post_image("tests/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();
2012-03-09 22:08:55 +00: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");
$this->assert_text("ASDFASDF");
2009-07-20 06:51:36 +01:00
$this->log_in_as_admin();
$this->delete_image($image_id);
$this->log_out();
}
}