Skip to content

Commit 674bb6f

Browse files
committed
Add more cases to the test
1 parent 056bb18 commit 674bb6f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/WP_SQLite_Translator_Tests.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
294294
$this->assertQuery(
295295
"CREATE TABLE _tmp_table (
296296
ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
297-
created_at datetime NOT NULL
297+
timestamp1 datetime NOT NULL,
298+
timestamp2 date NOT NULL,
299+
timestamp3 time NOT NULL,
300+
timestamp4 timestamp NOT NULL,
301+
timestamp5 year NOT NULL
298302
);"
299303
);
300304

@@ -306,7 +310,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
306310
$this->assertEquals(
307311
"CREATE TABLE _tmp_table (
308312
`ID` bigint PRIMARY KEY AUTO_INCREMENT NOT NULL,
309-
`created_at` datetime NOT NULL
313+
`timestamp1` datetime NOT NULL,
314+
`timestamp2` date NOT NULL,
315+
`timestamp3` time NOT NULL,
316+
`timestamp4` timestamp NOT NULL,
317+
`timestamp5` year NOT NULL
310318
);",
311319
$results[0]->{'Create Table'}
312320
);

0 commit comments

Comments
 (0)