[ticket/11620] Abstracted session setUp into a test_case class

When defining a database test case with a setUp function, it is important
to call the parent's setup function, because that is when the database is setup.

PHPBB3-11620