diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-04-12 14:34:16 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-04-12 14:34:16 +0200 |
commit | bd31ebd2878e258d8f16fa0493b7537752da76a0 (patch) | |
tree | f8a8cd70ab516111f8382138b8ab3d8b6a2d29bd | |
parent | 1efb0a8488f866e6f791bbf85439aa9b031c83ba (diff) | |
download | forums-bd31ebd2878e258d8f16fa0493b7537752da76a0.tar forums-bd31ebd2878e258d8f16fa0493b7537752da76a0.tar.gz forums-bd31ebd2878e258d8f16fa0493b7537752da76a0.tar.bz2 forums-bd31ebd2878e258d8f16fa0493b7537752da76a0.tar.xz forums-bd31ebd2878e258d8f16fa0493b7537752da76a0.zip |
[ticket/12398] Use submit_post return in prune_shadow_topic_test
This should get rid of possible failures during functional tests.
PHPBB3-12398
-rw-r--r-- | tests/functional/prune_shadow_topic_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/prune_shadow_topic_test.php b/tests/functional/prune_shadow_topic_test.php index 901cedb389..a9fd2457bb 100644 --- a/tests/functional/prune_shadow_topic_test.php +++ b/tests/functional/prune_shadow_topic_test.php @@ -76,7 +76,7 @@ class phpbb_functional_prune_shadow_topic_test extends phpbb_functional_test_cas $crawler = self::request('GET', "viewtopic.php?t={$post2['topic_id']}&sid={$this->sid}"); $this->assertContains('Re: Prune Shadow #1-#2', $crawler->filter('html')->text()); - $this->data['posts']['Re: Prune Shadow #1-#2'] = (int) $this->get_parameter_from_link($crawler->filter('.post')->eq(1)->selectLink($this->lang('POST', '', ''))->link()->getUri(), 'p'); + $this->data['posts']['Re: Prune Shadow #1-#2'] = (int) $post2['post_id']; $this->assert_forum_details($this->data['forums']['Prune Shadow'], array( 'forum_posts_approved' => 2, |