2008-10-18 10:00:34 +00:00
|
|
|
<?php
|
2015-09-20 22:40:04 +01:00
|
|
|
class RSSCommentsTest extends ShimmiePHPUnitTestCase {
|
2008-10-18 10:00:34 +00:00
|
|
|
function testImageFeed() {
|
2015-09-20 22:40:04 +01:00
|
|
|
global $user;
|
2009-09-20 03:58:50 +01:00
|
|
|
$this->log_in_as_user();
|
2015-08-09 12:14:28 +01:00
|
|
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
|
2015-09-20 22:40:04 +01:00
|
|
|
send_event(new CommentPostingEvent($image_id, $user, "ASDFASDF"));
|
2009-09-20 03:58:50 +01:00
|
|
|
|
2012-03-09 22:08:55 +00:00
|
|
|
$this->get_page('rss/comments');
|
2015-09-20 22:40:04 +01:00
|
|
|
//$this->assert_mime("application/rss+xml");
|
|
|
|
$this->assert_no_content("Exception");
|
|
|
|
$this->assert_content("ASDFASDF");
|
2008-10-18 10:00:34 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-25 22:54:51 -04:00
|
|
|
|