mode = \Friendica\App::MODE_INSTALL; // Create database structure DBStructure::update(false, true, true); $app->mode = \Friendica\App::MODE_NORMAL; var_dump(dba::inArray(\dba::select('contact'))); } else { $this->markTestSkipped('Could not connect to the database. Please check the MYSQL_* environment variables.'); } } return $this->createDefaultDBConnection(dba::get_db(), getenv('MYSQL_DATABASE')); } /** * Get dataset to populate the database with. * @return YamlDataSet * @see https://phpunit.de/manual/5.7/en/database.html */ protected function getDataSet() { return new YamlDataSet(__DIR__ . '/datasets/api.yml'); } }