/**
* Setup database
*/
protected function setUp()
{
parent::setUp();
\Tester\Helpers::lock('db', dirname(TEMP_DIR));
$this->connection = $this->getConnection();
$this->selectionFactory = $this->getSelectionFactory();
$this->connection->beginTransaction();
$this->emptyDatabase();
$this->createDatabase();
$this->connection->commit();
}