Skip to content

Commit

Permalink
[ci] handle ci deprecations for test config
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Apr 11, 2024
1 parent 18d7045 commit 02bc684
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/ResetPasswordTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,19 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
],
'orm' => [
'auto_generate_proxy_classes' => true,
'controller_resolver' => ['auto_mapping' => false], // @see https://github.com/doctrine/DoctrineBundle/pull/1762
'enable_lazy_ghost_objects' => true, // @see https://github.com/doctrine/DoctrineBundle/pull/1733
'auto_mapping' => true,
'mappings' => [
'App' => [
'is_bundle' => false,
'type' => self::shouldUseAttributes() ? 'attribute' : 'annotation',
'type' => 'attribute',
'dir' => 'tests/Fixtures/Entity/',
'prefix' => 'SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\Entity',
'alias' => 'App',
],
],
'report_fields_where_declared' => true, // @see https://github.com/doctrine/DoctrineBundle/pull/1661
],
]);

Expand Down Expand Up @@ -141,9 +144,4 @@ public function getLogDir(): string
{
return sys_get_temp_dir().'/logs'.spl_object_hash($this);
}

public static function shouldUseAttributes(): bool
{
return Kernel::VERSION_ID >= 70000;
}
}

0 comments on commit 02bc684

Please sign in to comment.