Skip to content

Commit 02bc684

Browse files
committed
[ci] handle ci deprecations for test config
1 parent 18d7045 commit 02bc684

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/ResetPasswordTestKernel.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,19 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
8787
],
8888
'orm' => [
8989
'auto_generate_proxy_classes' => true,
90+
'controller_resolver' => ['auto_mapping' => false], // @see https://github.com/doctrine/DoctrineBundle/pull/1762
91+
'enable_lazy_ghost_objects' => true, // @see https://github.com/doctrine/DoctrineBundle/pull/1733
9092
'auto_mapping' => true,
9193
'mappings' => [
9294
'App' => [
9395
'is_bundle' => false,
94-
'type' => self::shouldUseAttributes() ? 'attribute' : 'annotation',
96+
'type' => 'attribute',
9597
'dir' => 'tests/Fixtures/Entity/',
9698
'prefix' => 'SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\Entity',
9799
'alias' => 'App',
98100
],
99101
],
102+
'report_fields_where_declared' => true, // @see https://github.com/doctrine/DoctrineBundle/pull/1661
100103
],
101104
]);
102105

@@ -141,9 +144,4 @@ public function getLogDir(): string
141144
{
142145
return sys_get_temp_dir().'/logs'.spl_object_hash($this);
143146
}
144-
145-
public static function shouldUseAttributes(): bool
146-
{
147-
return Kernel::VERSION_ID >= 70000;
148-
}
149147
}

0 commit comments

Comments
 (0)