diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-25 21:04:12 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-25 21:33:17 +0200 |
commit | 64e1824abdb2a9c860e049f10ecc81c051160ff5 (patch) | |
tree | d6275e95fff83fa5a541b958fdfc7a7f753d9637 /tests | |
parent | 2a7a06da2a166b814732bdfa790e53b80da8a612 (diff) | |
download | forums-64e1824abdb2a9c860e049f10ecc81c051160ff5.tar forums-64e1824abdb2a9c860e049f10ecc81c051160ff5.tar.gz forums-64e1824abdb2a9c860e049f10ecc81c051160ff5.tar.bz2 forums-64e1824abdb2a9c860e049f10ecc81c051160ff5.tar.xz forums-64e1824abdb2a9c860e049f10ecc81c051160ff5.zip |
[ticket/13847] Updated ucp_pm_compose to use utils when forwarding
PHPBB3-13847
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/private_messages_test.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/functional/private_messages_test.php b/tests/functional/private_messages_test.php index 4851fc4c64..3f602d62fb 100644 --- a/tests/functional/private_messages_test.php +++ b/tests/functional/private_messages_test.php @@ -67,7 +67,7 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case $this->assertContains($this->lang('CONFIG_UPDATED'), $crawler->filter('.successbox')->text()); } - public function test_quote() + public function test_quote_post() { $text = 'Test post'; $expected = '[quote="admin"]' . $text . '[/quote]'; @@ -80,4 +80,17 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case $this->assertContains($expected, $crawler->filter('textarea#message')->text()); } + + public function test_quote_forward() + { + $text = 'This is a test private message sent by the testing framework.'; + $expected = '[quote="admin"]' . $text . '[/quote]'; + + $this->login(); + $message_id = $this->create_private_message('Test', $text, array(2)); + + $crawler = self::request('GET', 'ucp.php?i=pm&mode=compose&action=forward&f=0&p=' . $message_id . '&sid=' . $this->sid); + + $this->assertContains($expected, $crawler->filter('textarea#message')->text()); + } } |