Skip to content

Commit

Permalink
Add more cases to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn committed Dec 11, 2024
1 parent f68a33c commit 929d908
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/WP_SQLite_Translator_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
$this->assertQuery(
"CREATE TABLE _tmp_table (
ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
created_at datetime NOT NULL
timestamp1 datetime NOT NULL,
timestamp2 date NOT NULL,
timestamp3 time NOT NULL,
timestamp4 timestamp NOT NULL,
timestamp5 year NOT NULL
);"
);

Expand All @@ -305,7 +309,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
$this->assertEquals(
"CREATE TABLE _tmp_table (
`ID` bigint PRIMARY KEY AUTO_INCREMENT NOT NULL,
`created_at` datetime NOT NULL
`timestamp1` datetime NOT NULL,
`timestamp2` date NOT NULL,
`timestamp3` time NOT NULL,
`timestamp4` timestamp NOT NULL,
`timestamp5` year NOT NULL
);",
$results[0]->{'Create Table'}
);
Expand Down

0 comments on commit 929d908

Please sign in to comment.