function UnishTestCase::db_url

8.0.x UnishTestCase.php UnishTestCase::db_url($env)
7.x UnishTestCase.php UnishTestCase::db_url($env)
master UnishTestCase.php UnishTestCase::db_url($env)

Parameters

$env:

Return value

string

File

tests/Unish/UnishTestCase.php, line 222

Namespace

Unish

Class

UnishTestCase

Code

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