From ad1513cde9201c3e8039dd1f3ff5d4d4ca8b7e0e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 13 Apr 2014 22:22:55 +0200 Subject: [PATCH] [ticket/12398] Select correct post to restore during softdelete tests PHPBB3-12398 --- tests/functional/softdelete_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/softdelete_test.php b/tests/functional/softdelete_test.php index dbea67db93..1c86d00b9b 100644 --- a/tests/functional/softdelete_test.php +++ b/tests/functional/softdelete_test.php @@ -410,7 +410,7 @@ class phpbb_functional_softdelete_test extends phpbb_functional_test_case $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());