[ticket/12398] Select correct post to restore during softdelete tests

PHPBB3-12398
Merge remote-tracking branch 'marc/ticket/12398' into develop-ascraeus

* marc/ticket/12398:
  [ticket/12398] Select correct post to restore during softdelete tests