mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/12398] Use return of submit_post in softdelete and download tests
PHPBB3-12398
This commit is contained in:
parent
bd31ebd287
commit
5124920d22
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class phpbb_functional_download_test extends phpbb_functional_test_case
|
|||
$crawler = self::request('GET', "viewtopic.php?t={$post2['topic_id']}&sid={$this->sid}");
|
||||
|
||||
$this->assertContains('Re: Download Topic #1-#2', $crawler->filter('html')->text());
|
||||
$this->data['posts']['Re: Download Topic #1-#2'] = (int) $this->get_parameter_from_link($crawler->filter('.post')->eq(1)->selectLink($this->lang('POST', '', ''))->link()->getUri(), 'p');
|
||||
$this->data['posts']['Re: Download Topic #1-#2'] = (int) $post2['post_id'];
|
||||
}
|
||||
|
||||
public function test_download_accessible()
|
||||
|
|
|
@ -83,7 +83,7 @@ class phpbb_functional_softdelete_test extends phpbb_functional_test_case
|
|||
$crawler = self::request('GET', "viewtopic.php?t={$post2['topic_id']}&sid={$this->sid}");
|
||||
|
||||
$this->assertContains('Re: Soft Delete Topic #1-#2', $crawler->filter('html')->text());
|
||||
$this->data['posts']['Re: Soft Delete Topic #1-#2'] = (int) $this->get_parameter_from_link($crawler->filter('.post')->eq(1)->selectLink($this->lang('POST', '', ''))->link()->getUri(), 'p');
|
||||
$this->data['posts']['Re: Soft Delete Topic #1-#2'] = (int) $post2['post_id'];
|
||||
|
||||
$this->assert_forum_details($this->data['forums']['Soft Delete #1'], array(
|
||||
'forum_posts_approved' => 2,
|
||||
|
|
Loading…
Add table
Reference in a new issue