diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-01-07 00:16:45 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-07 00:16:45 +0100 |
| commit | 7074876f3298df301bad89c1a55c4265aad4c710 (patch) | |
| tree | c0791ce965d13da2916116f55f55f27540ebea8d /tests | |
| parent | 166320ef9edd0f8c5e6ddaee35f05741c274eb4e (diff) | |
| parent | 538f03efb058c84daf3e677a3137be8900678f2b (diff) | |
| download | forums-7074876f3298df301bad89c1a55c4265aad4c710.tar forums-7074876f3298df301bad89c1a55c4265aad4c710.tar.gz forums-7074876f3298df301bad89c1a55c4265aad4c710.tar.bz2 forums-7074876f3298df301bad89c1a55c4265aad4c710.tar.xz forums-7074876f3298df301bad89c1a55c4265aad4c710.zip | |
Merge pull request #4619 from Nicofuma/ticket/14962
[ticket/14962] Introduces a new helper to check emptyness of bbcode texts
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/functional/posting_test.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php index 9dd8a1dc91..83acefd2f3 100644 --- a/tests/functional/posting_test.php +++ b/tests/functional/posting_test.php @@ -87,6 +87,24 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case } /** + * @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 */ public function test_quote_depth_form() |
