Skip to content

Commit

Permalink
Merge pull request #1671 from stof/avoid_deprecations
Browse files Browse the repository at this point in the history
Avoid indirect deprecations for the AttributeDriver in the testsuite
  • Loading branch information
stof committed Jun 5, 2023
2 parents e1f961a + ddb4b6f commit 6c273c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/Compiler/IdGeneratorPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function testRepositoryServiceWiring(): void
'charset' => 'UTF8',
'schema_manager_factory' => 'doctrine.dbal.default_schema_manager_factory',
],
'orm' => ['mappings' => $mappings],
'orm' => ['mappings' => $mappings, 'report_fields_where_declared' => true],
],
], $container);

Expand Down
1 change: 1 addition & 0 deletions Tests/DependencyInjection/DoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ public function testAttributesBundleMappingDetection(): void
'default_entity_manager' => 'default',
'entity_managers' => [
'default' => [
'report_fields_where_declared' => true,
'mappings' => [
'AttributesBundle' => ['type' => 'attribute'],
],
Expand Down
1 change: 1 addition & 0 deletions Tests/ServiceRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function testRepositoryServiceWiring(): void
'schema_manager_factory' => 'doctrine.dbal.default_schema_manager_factory',
],
'orm' => [
'report_fields_where_declared' => true,
'mappings' => [
'RepositoryServiceBundle' => [
'type' => PHP_VERSION_ID >= 80000 ? 'attribute' : 'annotation',
Expand Down

0 comments on commit 6c273c9

Please sign in to comment.