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

Ticket: https://tracker.phpbb.com/browse/PHPBB3-12398

PHPBB3-12398