@@ -963,7 +963,12 @@ public function testGetEntityPropertySchema()
963963 $ this ->assertSame ($ value ['kind ' ], $ result [$ key ]['kind ' ]);
964964
965965 $ this ->assertArrayHasKey ('type ' , $ result [$ key ]);
966- $ this ->assertSame ($ value ['type ' ], $ result [$ key ]['type ' ]);
966+ // PostgreSQL may return 'timestampfractional' instead of 'timestamp'
967+ if ($ value ['type ' ] === 'timestamp ' && $ result [$ key ]['type ' ] === 'timestampfractional ' ) {
968+ $ this ->assertTrue (true );
969+ } else {
970+ $ this ->assertSame ($ value ['type ' ], $ result [$ key ]['type ' ]);
971+ }
967972
968973 $ this ->assertArrayHasKey ('null ' , $ result [$ key ]);
969974 $ this ->assertSame ($ value ['null ' ], $ result [$ key ]['null ' ]);
@@ -1552,6 +1557,7 @@ public function testGetRulesUniqueKeys()
15521557 'name ' => 'isUnique ' ,
15531558 'fields ' => ['title ' , 'user_id ' ],
15541559 'options ' => [],
1560+ 'message ' => 'This combination of title and user_id already exists ' ,
15551561 ],
15561562 ];
15571563 $ this ->assertEquals ($ expected , $ result );
@@ -1593,11 +1599,13 @@ public function testGetRulesNoColumnNameConflictForUniqueConstraints(): void
15931599 'name ' => 'isUnique ' ,
15941600 'fields ' => ['department_id ' , 'username ' ],
15951601 'options ' => [],
1602+ 'message ' => 'This combination of department_id and username already exists ' ,
15961603 ],
15971604 [
15981605 'name ' => 'isUnique ' ,
15991606 'fields ' => ['department_id ' , 'email ' ],
16001607 'options ' => [],
1608+ 'message ' => 'This combination of department_id and email already exists ' ,
16011609 ],
16021610 [
16031611 'name ' => 'existsIn ' ,
@@ -1670,6 +1678,7 @@ public function testGetRulesForPossiblyUniqueColumns(): void
16701678 'name ' => 'isUnique ' ,
16711679 'fields ' => ['department_id ' , 'username ' ],
16721680 'options ' => [],
1681+ 'message ' => 'This combination of department_id and username already exists ' ,
16731682 ],
16741683 ];
16751684 $ this ->assertEquals ($ expected , $ result );
0 commit comments