From e745750eca9bf718094c27af26873be646bf9ef6 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 13 Apr 2012 13:16:48 -0400 Subject: [PATCH] Update test paths --- tests/databases/mysql/mysql-qb.php | 4 ++-- tests/databases/mysql/mysql.php | 4 ++-- tests/databases/pgsql/pgsql-qb.php | 4 ++-- tests/databases/pgsql/pgsql.php | 4 ++-- tests/db_files/FB_TEST_DB.FDB | Bin 802816 -> 802816 bytes 5 files changed, 8 insertions(+), 8 deletions(-) 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 3674a55c9c9f12b03274a880b04df50e45bfe5c3..00306affdf06ee2c184b22d26dfa63d0ff082791 100755 GIT binary patch delta 605 zcmYjNK}=IY5S{&PrS0^$OSn`5wWa-hf(dCuqA~G8@MZ#-5RL>12BSB7A@TB~vIkFa zAQR$Ai2h)M5;XJz9E_g5$i;YQK@J4kZ#a|SY+=>e>`Y$v?Rzuhc_q&)jR?3^Jk7wr zkm!Xjk*<|)fcJa>Eb;0G!1&E?ZfE*}Ai?4@)dGTZrTb%UYBTjrDk+q-lnf~uRx+aG z6(!r0j4B!1lJT$5zn0p*4x!T-2Ty^IGra-Sd7Q_nhy$j+1tr^kam9`@h=Z z|5D_bb@J+Z8^ES~00w?I0(jDQkcvdEFDNi%Pt*YATyOgloA`X|mC_2eGPE+avb3_b zYS1d6RZy$OuPS6I+{)Y0&|DzDkP5vFx|cnn{ACX{Y>&^|*OUG8DYn24CSk{l!m!l| z=VlTtGYSPG4#Q>`c8v~rXLQ1Is{?w4XN53X^+NO$sA zCE5=*=jtQCYq<-M>oKM94G$fQ9xqdT$e&OP zF+KIdXR98Xv(w tCi73Vxw$IpGOzrgn5kf~7WQ`F0{p(Fy8WVOkmA`A1$nMY{hMbr_7|U4kzfD-