mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
connect() test.
This commit is contained in:
@@ -72,15 +72,23 @@
|
||||
{
|
||||
$result = $this->db->db_Connect($this->dbConfig['mySQLserver'], $this->dbConfig['mySQLuser'], $this->dbConfig['mySQLpassword'], $this->dbConfig['mySQLdefaultdb']);
|
||||
$this->assertTrue($result);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* connect() test.
|
||||
*/
|
||||
public function testConnect()
|
||||
{
|
||||
$result = $this->db->connect($this->dbConfig['mySQLserver'], $this->dbConfig['mySQLuser'], "wrong Password");
|
||||
$this->assertFalse($result);
|
||||
|
||||
$result = $this->db->connect($this->dbConfig['mySQLserver'], $this->dbConfig['mySQLuser'], $this->dbConfig['mySQLpassword']);
|
||||
$this->assertTrue($result);
|
||||
|
||||
$result = $this->db->connect($this->dbConfig['mySQLserver'].":3306", $this->dbConfig['mySQLuser'], $this->dbConfig['mySQLpassword']);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user