Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 4c8ffd9

Browse files
committed
Updated to 1.1.6 version
1 parent cb2d780 commit 4c8ffd9

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

tests/Database/Test/DatabaseCreateTest.php

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,30 @@ public function testGetConnection() {
3131
$this->db = Database::getConnection('identifier');
3232

3333
$database = $this->db;
34-
34+
3535
$this->assertContains('identifier', $database::$id);
36-
}
36+
}
37+
38+
/**
39+
* [QUERY] [CREATE TABLE] [RETURN TRUE]
40+
*
41+
* @since 1.1.6
42+
*/
43+
public static function testCreateTableQuery() {
44+
45+
46+
$result = $this->db->query(
47+
48+
'CREATE TABLE IF NOT EXISTS test (
49+
50+
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
51+
name VARCHAR(30) NOT NULL,
52+
email VARCHAR(50),
53+
reg_date TIMESTAMP
54+
)'
55+
);
56+
57+
$this->assertContains('identifier', $result);
58+
}
59+
3760
}

0 commit comments

Comments
 (0)