Update test paths

This commit is contained in:
Timothy Warren 2012-04-13 13:16:48 -04:00
parent 272dfd62d4
commit e745750eca
5 changed files with 8 additions and 8 deletions

View File

@ -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";

View File

@ -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);

View File

@ -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";

View File

@ -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.