Update test paths
This commit is contained in:
parent
272dfd62d4
commit
e745750eca
@ -19,9 +19,9 @@ class MySQLQBTest extends QBTest {
|
||||
parent::__construct();
|
||||
|
||||
// Attempt to connect, if there is a test config file
|
||||
if (is_file("../test_config.json"))
|
||||
if (is_file(BASE_DIR . "test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = json_decode(file_get_contents(BASE_DIR . "test_config.json"));
|
||||
$params = $params->mysql;
|
||||
$params->type = "mysql";
|
||||
|
||||
|
@ -22,9 +22,9 @@ class MySQLTest extends DBTest {
|
||||
function setUp()
|
||||
{
|
||||
// Attempt to connect, if there is a test config file
|
||||
if (is_file("../test_config.json"))
|
||||
if (is_file(BASE_DIR . "test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = json_decode(file_get_contents(BASE_DIR . "test_config.json"));
|
||||
$params = $params->mysql;
|
||||
|
||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
|
@ -19,9 +19,9 @@ class PgSQLQBTest extends QBTest {
|
||||
parent::__construct();
|
||||
|
||||
// Attempt to connect, if there is a test config file
|
||||
if (is_file("../test_config.json"))
|
||||
if (is_file(BASE_DIR . "test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = json_decode(file_get_contents(BASE_DIR . "test_config.json"));
|
||||
$params = $params->pgsql;
|
||||
$params->type = "pgsql";
|
||||
|
||||
|
@ -27,9 +27,9 @@ class PgTest extends DBTest {
|
||||
function setUp()
|
||||
{
|
||||
// Attempt to connect, if there is a test config file
|
||||
if (is_file("../test_config.json"))
|
||||
if (is_file(BASE_DIR . "test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = json_decode(file_get_contents(BASE_DIR . "test_config.json"));
|
||||
$params = $params->pgsql;
|
||||
|
||||
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user