This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/rss_comments/test.php

17 lines
517 B
PHP
Raw Normal View History

2020-01-26 13:19:35 +00:00
<?php declare(strict_types=1);
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"));
$this->get_page('rss/comments');
//$this->assert_mime(MIME_TYPE_RSS);
$this->assert_no_content("Exception");
$this->assert_content("ASDFASDF");
}
}