Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ protected function getRule(): Rule
if (!Type::hasType('array')) {
Type::addType('array', \Doctrine\DBAL\Types\ArrayType::class);
}
// entity-manager.php overrides the date type for the whole process, so without this the
// result of a data set without an object manager depends on the tests that ran before it
Type::overrideType('date', \Doctrine\DBAL\Types\DateTimeImmutableType::class);

return new EntityColumnRule(
new ObjectMetadataResolver($this->objectManagerLoader, __DIR__ . '/../../../../tmp'),
Expand Down
Loading