diff --git a/tests/databases/mysql/mysql-qb.php b/tests/databases/mysql/mysql-qb.php index 7c5bc82..14d683c 100644 --- a/tests/databases/mysql/mysql-qb.php +++ b/tests/databases/mysql/mysql-qb.php @@ -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"; diff --git a/tests/databases/mysql/mysql.php b/tests/databases/mysql/mysql.php index 83ecb2a..e77e591 100644 --- a/tests/databases/mysql/mysql.php +++ b/tests/databases/mysql/mysql.php @@ -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); diff --git a/tests/databases/pgsql/pgsql-qb.php b/tests/databases/pgsql/pgsql-qb.php index f27f288..58ac034 100644 --- a/tests/databases/pgsql/pgsql-qb.php +++ b/tests/databases/pgsql/pgsql-qb.php @@ -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"; diff --git a/tests/databases/pgsql/pgsql.php b/tests/databases/pgsql/pgsql.php index 3537426..f7005f4 100644 --- a/tests/databases/pgsql/pgsql.php +++ b/tests/databases/pgsql/pgsql.php @@ -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); diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index 3674a55..00306af 100755 Binary files a/tests/db_files/FB_TEST_DB.FDB and b/tests/db_files/FB_TEST_DB.FDB differ