From 5a6c852da6dfefc696ac46b5d4167844716dfa98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20K=C3=B3nya?= <40911283+kdaniel95@users.noreply.github.com> Date: Fri, 21 Jan 2022 15:51:10 +0100 Subject: [PATCH] Update CarbonTypesTest Co-authored-by: Kyle --- tests/Doctrine/CarbonTypesTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Doctrine/CarbonTypesTest.php b/tests/Doctrine/CarbonTypesTest.php index 0f12a59f97..d408f10379 100644 --- a/tests/Doctrine/CarbonTypesTest.php +++ b/tests/Doctrine/CarbonTypesTest.php @@ -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()));