public function setUp()
 {
     parent::setUp();
     $config = SmashPigDatabaseTestConfiguration::instance();
     Context::initWithLogger($config);
     $this->db = PendingDatabase::get();
     $this->db->createTable();
 }
 public function setUp()
 {
     parent::setUp();
     // Merge db and queue test configs.
     $config = TestingConfiguration::loadConfigWithFileOverrides(array(__DIR__ . '/data/config_smashpig_db.yaml', __DIR__ . '/data/config_queue.yaml'));
     Context::initWithLogger($config);
     $this->pendingDb = PendingDatabase::get();
     $this->pendingDb->createTable();
     $this->paymentsInitialDb = PaymentsInitialDatabase::get();
     $this->paymentsInitialDb->createTable();
 }