Skip to content

Commit

Permalink
[ticket/12398] Select correct post to restore during softdelete tests
Browse files Browse the repository at this point in the history
PHPBB3-12398
  • Loading branch information
marc1706 committed Apr 13, 2014
1 parent cbc1c4b commit ad1513c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/softdelete_test.php
Expand Up @@ -410,7 +410,7 @@ public function test_restore_post()
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Soft Delete Topic #1']}&sid={$this->sid}");

$this->add_lang('mcp');
$form = $crawler->selectButton($this->lang('RESTORE'))->form();
$form = $crawler->filter('#p' . $this->data['posts']['Soft Delete Topic #1'])->selectButton($this->lang('RESTORE'))->form();
$crawler = self::submit($form);
$this->assertContainsLang('RESTORE_POST', $crawler->text());

Expand Down

0 comments on commit ad1513c

Please sign in to comment.