diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-01-06 19:52:17 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-01-06 21:40:31 +0100 |
commit | f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f (patch) | |
tree | e787c297018cc24f4e1fc160fecd4375fadbd9d8 /tests/functional | |
parent | 2251816b10a300a873c1b5191d21445461e0d89d (diff) | |
download | forums-f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f.tar forums-f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f.tar.gz forums-f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f.tar.bz2 forums-f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f.tar.xz forums-f82299b8e445cccfc8bad8cbe6505f3fb50d0f8f.zip |
[ticket/14962] Introduces a new helper to check emptyness of bbcode texts
PHPBB3-14962
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/posting_test.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php index 9dd8a1dc91..4ed34eca31 100644 --- a/tests/functional/posting_test.php +++ b/tests/functional/posting_test.php @@ -87,6 +87,21 @@ 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 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 */ public function test_quote_depth_form() |