@@ -46,7 +46,7 @@ public function testCreateTableQuery($db) {
4646
4747 $ result = $ db ->query (
4848
49- 'CREATE TABLE IF NOT EXISTS test (
49+ 'CREATE TABLE IF NOT EXISTS test_table (
5050
5151 id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
5252 name VARCHAR(30) NOT NULL,
@@ -75,7 +75,7 @@ public function testCreateTableQueryError($db) {
7575
7676 $ result = $ db ->query (
7777
78- 'CREATE TABLE IF NOT EXISTS test (
78+ 'CREATE TABLE IF NOT EXISTS test_table (
7979
8080 id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
8181 name VARCHAR(30) NOT NULL,
@@ -104,7 +104,10 @@ public function testCreateTableMethod($db) {
104104 'reg_date ' => 'TIMESTAMP '
105105 ];
106106
107- $ this ->assertTrue ($ db ->create ($ params )->table ('test ' )->execute ());
107+ $ this ->assertTrue (
108+
109+ $ db ->create ($ params )->table ('test_table ' )->execute ()
110+ );
108111 }
109112
110113 /**
@@ -130,7 +133,7 @@ public function testCreateTableMethodError($db) {
130133 'reg_date ' => 'TIMESTAMP '
131134 ];
132135
133- $ db ->create ($ params )->table ('test ' )->execute ();
136+ $ db ->create ($ params )->table ('test_table ' )->execute ();
134137 }
135138
136139 /**
@@ -153,10 +156,10 @@ public function testCreateTableMethod2($db) {
153156 ];
154157
155158 $ query = $ db ->create ($ params )
156- ->table ('test_2 ' )
159+ ->table ('test_table_two ' )
157160 ->foreing ('id ' )
158161 ->reference ('id ' )
159- ->on ('test ' )
162+ ->on ('test_table ' )
160163 ->actions ('ON DELETE CASCADE ON UPDATE CASCADE ' )
161164 ->engine ('innodb ' )
162165 ->charset ('utf8 ' );
@@ -188,10 +191,10 @@ public function testCreateTableMethod2Error($db) {
188191 ];
189192
190193 $ query = $ db ->create ($ params )
191- ->table ('test_2 ' )
194+ ->table ('test_table_two ' )
192195 ->foreing ('id ' )
193196 ->reference ('id ' )
194- ->on ('test ' )
197+ ->on ('test_table ' )
195198 ->actions ('ONDELETE CASCADE ON UPDATE CASCADE ' )
196199 ->engine ('innodb ' )
197200 ->charset ('utf8 ' );
0 commit comments