Skip to content

Commit

Permalink
Update CarbonTypesTest
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle <kylekatarnls@users.noreply.github.com>
  • Loading branch information
kdaniel95 and kylekatarnls authored Jan 21, 2022
1 parent 942ba23 commit 5a6c852
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Doctrine/CarbonTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ public function testGetSQLDeclaration(string $name)
'precision' => null,
], new DB2Platform()));

$this->assertSame('TIMESTAMP(6)', $type->getSQLDeclaration([
'precision' => 0,
], new DB2Platform()));

$this->assertSame('DATETIME(6)', $type->getSQLDeclaration([
'precision' => 0,
], new MySQL57Platform()));

$this->assertSame('DATETIME(6)', $type->getSQLDeclaration([
'precision' => null,
], new MySQL57Platform()));
Expand Down

0 comments on commit 5a6c852

Please sign in to comment.