1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/14962] Introduces a new helper to check emptyness of bbcode texts

PHPBB3-14962
This commit is contained in:
Tristan Darricau
2017-01-06 19:52:17 +01:00
parent 2251816b10
commit f82299b8e4
4 changed files with 45 additions and 8 deletions

View File

@@ -86,6 +86,21 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
}
/**
* @see https://tracker.phpbb.com/browse/PHPBB3-14962
*/
public function test_edit()
{
$this->login();
$this->create_topic(2, 'Test Topic 1', 'Test topic');
$url = self::$client->getCrawler()->selectLink('Edit')->link()->getUri();
$post_id = $this->get_parameter_from_link($url, 'p');
$this->submit_post("posting.php?mode=edit&f=2&p={$post_id}", 'EDIT_POST', array('message' => 'Edited post'));
$this->assertContains('Edited post', self::$client->getCrawler()->filter("#post_content{$post_id} .content")->text());
}
/**
* @testdox max_quote_depth is applied to the text populating the posting form
*/