function Drush_TestCase::db_url

6.x drush_testcase.inc Drush_TestCase::db_url($env)
5.x drush_testcase.inc Drush_TestCase::db_url($env)

File

tests/drush_testcase.inc, line 230
Initialize a sandboxed environment. Starts with call unish_init() at bottom.

Class

Drush_TestCase

Code

function db_url($env) {
  return substr(UNISH_DB_URL, 0, 6) == 'sqlite' ? "sqlite://sites/$env/files/unish.sqlite" : UNISH_DB_URL . '/unish_' . $env;
}