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/emoticons/test.php

23 lines
652 B
PHP
Raw Normal View History

2009-07-20 05:51:36 +00:00
<?php
class EmoticonTest extends ShimmieWebTestCase {
function testEmoticons() {
$this->log_in_as_user();
$image_id = $this->post_image("ext/simpletest/data/pbx_screenshot.jpg", "pbx computer screenshot");
$this->get_page("post/view/$image_id");
2009-08-19 00:28:48 +00:00
$this->set_field('comment', ":cool: :beans:");
2009-07-20 05:51:36 +00:00
$this->click("Post Comment");
2009-08-19 00:28:48 +00:00
$this->assert_no_text(":cool:"); # FIXME: test for working image link
#$this->assert_text(":beans:"); # FIXME: this should be left as-is
2009-07-20 05:51:36 +00:00
2009-09-19 19:18:46 +00:00
$this->get_page("emote/list");
$this->assert_text(":arrow:");
2009-07-20 05:51:36 +00:00
$this->log_out();
$this->log_in_as_admin();
$this->delete_image($image_id);
$this->log_out();
}
}