Query builder mysql tests
This commit is contained in:
parent
f141805627
commit
3991dbc6a4
@ -29,6 +29,18 @@ class MySQLQBTest extends QBTest {
|
||||
|
||||
// echo '<hr /> MySQL Queries <hr />';
|
||||
}
|
||||
elseif ( ! empty($_ENV['TRAVIS']))
|
||||
{
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '3306',
|
||||
'database' => 'test',
|
||||
'user' => 'root',
|
||||
'pass' => NULL
|
||||
);
|
||||
|
||||
$this->db = new Query_Builder($params);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -29,7 +29,7 @@ class MySQLTest extends DBTest {
|
||||
|
||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
}
|
||||
else
|
||||
elseif ( ! empty($_ENV['TRAVIS']))
|
||||
{
|
||||
$this->db = new MySQL('host=127.0.0.1;dbname=test', 'root');
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user