It connects, right?
This commit is contained in:
parent
3991dbc6a4
commit
69995baa6d
@ -19,7 +19,7 @@ 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("../test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = $params->mysql;
|
||||
@ -29,7 +29,7 @@ class MySQLQBTest extends QBTest {
|
||||
|
||||
// echo '<hr /> MySQL Queries <hr />';
|
||||
}
|
||||
elseif ( ! empty($_ENV['TRAVIS']))
|
||||
elseif ( ! empty($_ENV['TRAVIS']))*/
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
|
@ -22,16 +22,16 @@ 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("../test_config.json"))
|
||||
{
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = $params->mysql;
|
||||
|
||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
}
|
||||
elseif ( ! empty($_ENV['TRAVIS']))
|
||||
elseif ( ! empty($_ENV['TRAVIS']))*/
|
||||
{
|
||||
$this->db = new MySQL('host=127.0.0.1;dbname=test', 'root');
|
||||
$this->db = new MySQL('host=127.0.0.1;port=3306;dbname=test', 'root');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user