2009-07-20 06:51:36 +01:00
|
|
|
<?php
|
2015-09-12 12:24:18 +01:00
|
|
|
class EmoticonTest extends ShimmiePHPUnitTestCase {
|
2009-07-20 06:51:36 +01:00
|
|
|
function testEmoticons() {
|
2015-09-12 12:24:18 +01:00
|
|
|
global $user;
|
|
|
|
|
2009-07-20 06:51:36 +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 computer screenshot");
|
2009-07-20 06:51:36 +01:00
|
|
|
|
2015-09-12 12:24:18 +01:00
|
|
|
send_event(new CommentPostingEvent($image_id, $user, ":cool: :beans:"));
|
|
|
|
|
|
|
|
$this->get_page("post/view/$image_id");
|
2009-08-19 01:28:48 +01:00
|
|
|
$this->assert_no_text(":cool:"); # FIXME: test for working image link
|
2015-09-12 12:24:18 +01:00
|
|
|
//$this->assert_text(":beans:"); # FIXME: this should be left as-is
|
2009-07-20 06:51:36 +01:00
|
|
|
|
2009-09-19 20:18:46 +01:00
|
|
|
$this->get_page("emote/list");
|
2015-09-12 12:24:18 +01:00
|
|
|
//$this->assert_text(":arrow:");
|
2009-07-20 06:51:36 +01:00
|
|
|
}
|
|
|
|
}
|
2014-04-25 22:54:51 -04:00
|
|
|
|