diff --git a/tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php b/tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php index a29a1d57..45fb81cd 100644 --- a/tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php +++ b/tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php @@ -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'),