Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Nov 6, 2023
1 parent c37884d commit 0346940
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Integration/Database/DBAL/TimestampTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function testChangeDatetimeColumnToTimestampColumn()
// Only Postgres and MySQL actually have a timestamp type
$this->assertSame(
match ($this->driver) {
'mysql' => 'timestamp',
'pgsql' => 'timestamp without time zone',
'mysql', 'pgsql' => 'timestamp',
default => 'datetime',
},
Schema::getColumnType('test', 'datetime_to_timestamp')
Expand All @@ -62,7 +61,7 @@ public function testChangeTimestampColumnToDatetimeColumn()
// Postgres only has a timestamp type
$this->assertSame(
match ($this->driver) {
'pgsql' => 'timestamp without time zone',
'pgsql' => 'timestamp',
'sqlsrv' => 'datetime2',
default => 'datetime',
},
Expand Down

0 comments on commit 0346940

Please sign in to comment.