aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/private_messages_test.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-25 20:54:30 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-25 21:33:17 +0200
commit2a7a06da2a166b814732bdfa790e53b80da8a612 (patch)
tree4b8e9179b74183c53f84ebc8feb3da5f081e6566 /tests/functional/private_messages_test.php
parente50d9186ce15367e8f6e2aab5c04481ca0046ec6 (diff)
downloadforums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.gz
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.bz2
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.xz
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.zip
[ticket/13847] Updated ucp_pm_compose to use the utils service
...when quoting a post PHPBB3-13847
Diffstat (limited to 'tests/functional/private_messages_test.php')
-rw-r--r--tests/functional/private_messages_test.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/private_messages_test.php b/tests/functional/private_messages_test.php
index 1f6dc3a979..4851fc4c64 100644
--- a/tests/functional/private_messages_test.php
+++ b/tests/functional/private_messages_test.php
@@ -66,4 +66,18 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case
$crawler = self::submit($form);
$this->assertContains($this->lang('CONFIG_UPDATED'), $crawler->filter('.successbox')->text());
}
+
+ public function test_quote()
+ {
+ $text = 'Test post';
+ $expected = '[quote="admin"]' . $text . '[/quote]';
+
+ $this->login();
+ $topic = $this->create_topic(2, 'Test Topic 1', 'Test topic');
+ $post = $this->create_post(2, $topic['topic_id'], 'Re: Test Topic 1', $text);
+
+ $crawler = self::request('GET', 'ucp.php?i=pm&mode=compose&action=quotepost&p=' . $post['post_id'] . '&sid=' . $this->sid);
+
+ $this->assertContains($expected, $crawler->filter('textarea#message')->text());
+ }
}