[ticket/12398] Use submit_post return in prune_shadow_topic_test

This should get rid of possible failures during functional tests.

PHPBB3-12398
This commit is contained in:
Marc Alexander 2014-04-12 14:34:16 +02:00
parent 1efb0a8488
commit bd31ebd287

View file

@ -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}"); $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->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( $this->assert_forum_details($this->data['forums']['Prune Shadow'], array(
'forum_posts_approved' => 2, 'forum_posts_approved' => 2,