mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #4619 from Nicofuma/ticket/14962
[ticket/14962] Introduces a new helper to check emptyness of bbcode texts
This commit is contained in:
@@ -86,6 +86,24 @@ 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 post', 'Test topic post');
|
||||
|
||||
$url = self::$client->getCrawler()->selectLink('Edit')->link()->getUri();
|
||||
$post_id = $this->get_parameter_from_link($url, 'p');
|
||||
$crawler = self::request('GET', "posting.php?mode=edit&f=2&p={$post_id}&sid={$this->sid}");
|
||||
$form = $crawler->selectButton('Submit')->form();
|
||||
$form->setValues(array('message' => 'Edited post'));
|
||||
$crawler = self::submit($form);
|
||||
|
||||
$this->assertContains('Edited post', $crawler->filter("#post_content{$post_id} .content")->text());
|
||||
}
|
||||
|
||||
/**
|
||||
* @testdox max_quote_depth is applied to the text populating the posting form
|
||||
*/
|
||||
|
Reference in New Issue
Block a user