Skip to content

Commit 929d908

Browse files
committed
Add more cases to the test
1 parent f68a33c commit 929d908

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
@@ -293,7 +293,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
293293
$this->assertQuery(
294294
"CREATE TABLE _tmp_table (
295295
ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
296-
created_at datetime NOT NULL
296+
timestamp1 datetime NOT NULL,
297+
timestamp2 date NOT NULL,
298+
timestamp3 time NOT NULL,
299+
timestamp4 timestamp NOT NULL,
300+
timestamp5 year NOT NULL
297301
);"
298302
);
299303

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

0 commit comments

Comments
 (0)