Fix some tests
This commit is contained in:
parent
fdc37f8819
commit
96ada089ee
@ -20,7 +20,7 @@
|
||||
*/
|
||||
class DB_Reg {
|
||||
|
||||
private static $instance;
|
||||
private static $instance=array();
|
||||
|
||||
/**
|
||||
* Registry access method
|
||||
|
@ -180,7 +180,25 @@ class Connection_Sidebar extends GtkVBox {
|
||||
*/
|
||||
public function set_status_icon($col, $cell, $model, $iter)
|
||||
{
|
||||
$col->set_reorderable(TRUE);
|
||||
$info = $model->get_value($iter, 0);
|
||||
|
||||
list($width, $height) = Gtk::icon_size_lookup(Gtk::ICON_SIZE_SMALL_TOOLBAR);
|
||||
|
||||
$conns = DB_Reg::get_connections();
|
||||
|
||||
/*if(in_array($info->name, $conns))
|
||||
{
|
||||
$img = new GTKImage();
|
||||
$img->set_from_stock(GTK::STOCK_YES, Gtk::ICON_SIZE_SMALL_TOOLBAR);
|
||||
$cell->set_property('pixbuf', $img->get_pixbuf());
|
||||
}
|
||||
else
|
||||
{
|
||||
$img = new GTKImage();
|
||||
$img->set_from_stock(GTK::STOCK_NO, Gtk::ICON_SIZE_SMALL_TOOLBAR);
|
||||
$cell->set_property('pixbuf', $img->get_pixbuf());
|
||||
}*/
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
@ -34,7 +34,7 @@ class MySQLQBTest extends QBTest {
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '3306',
|
||||
'database' => 'test',
|
||||
'conn_db' => 'test',
|
||||
'user' => 'root',
|
||||
'pass' => NULL,
|
||||
'type' => 'mysql'
|
||||
|
@ -27,7 +27,7 @@ class MySQLTest extends DBTest {
|
||||
$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);
|
||||
$this->db = new MySQL("host={$params->host};port={$params->port};dbname={$params->conn_db}", $params->user, $params->pass);
|
||||
}
|
||||
elseif (($var = getenv('CI')))
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ class PgSQLQBTest extends QBTest {
|
||||
$params = array(
|
||||
'host' => '127.0.0.1',
|
||||
'port' => '5432',
|
||||
'database' => 'test',
|
||||
'conn_db' => 'test',
|
||||
'user' => 'postgres',
|
||||
'pass' => '',
|
||||
'type' => 'pgsql'
|
||||
|
@ -32,7 +32,7 @@ class PgTest extends DBTest {
|
||||
$params = json_decode(file_get_contents("../test_config.json"));
|
||||
$params = $params->pgsql;
|
||||
|
||||
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->database}", $params->user, $params->pass);
|
||||
$this->db = new PgSQL("host={$params->host};port={$params->port};dbname={$params->conn_db}", $params->user, $params->pass);
|
||||
}
|
||||
elseif (($var = getenv('CI')))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user