mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
PDO tests
This commit is contained in:
@@ -117,6 +117,12 @@
|
|||||||
$result = $this->db->database("missing_database");
|
$result = $this->db->database("missing_database");
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
|
||||||
|
$result = $this->db->database($this->dbConfig['mySQLdefaultdb'], MPREFIX, true);
|
||||||
|
$this->assertTrue($result);
|
||||||
|
$this->assertEquals("`e107_tests`.e107_", $this->db->mySQLPrefix);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetCharSet()
|
public function testGetCharSet()
|
||||||
@@ -147,6 +153,11 @@
|
|||||||
$this->assertArrayHasKey('Time', $actual[1]);
|
$this->assertArrayHasKey('Time', $actual[1]);
|
||||||
$this->assertArrayHasKey('Memory', $actual[1]);
|
$this->assertArrayHasKey('Memory', $actual[1]);
|
||||||
|
|
||||||
|
$this->db->debugMode(false);
|
||||||
|
$result = $this->db->db_Mark_Time("Testing");
|
||||||
|
$this->assertNull($result);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user