[ticket/12890] Remove DB dependency from CPF unit tests

PHPBB3-12890