1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/13847] Updated ucp_pm_compose to use utils when forwarding

PHPBB3-13847
This commit is contained in:
JoshyPHP
2015-05-25 21:04:12 +02:00
parent 2a7a06da2a
commit 64e1824abd
2 changed files with 19 additions and 2 deletions

View File

@@ -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());
}
}