2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2019-05-28 17:59:38 +01:00
|
|
|
class RSSCommentsTest extends ShimmiePHPUnitTestCase
|
|
|
|
{
|
|
|
|
public function testImageFeed()
|
|
|
|
{
|
|
|
|
global $user;
|
|
|
|
$this->log_in_as_user();
|
|
|
|
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
|
|
|
|
send_event(new CommentPostingEvent($image_id, $user, "ASDFASDF"));
|
2009-09-20 03:58:50 +01:00
|
|
|
|
2019-05-28 17:59:38 +01:00
|
|
|
$this->get_page('rss/comments');
|
2020-05-28 10:05:20 -05:00
|
|
|
//$this->assert_mime(MIME_TYPE_RSS);
|
2019-05-28 17:59:38 +01:00
|
|
|
$this->assert_no_content("Exception");
|
|
|
|
$this->assert_content("ASDFASDF");
|
2008-10-18 10:00:34 +00:00
|
|
|
}
|
|
|
|
}
|