[ticket/11768] Added tickets tests

PHPBB3-11768
[ticket/11768] Fixed polls... I think.

PHPBB3-11768