|
12 | 12 | use Doctrine\DBAL\Connections\PrimaryReadReplicaConnection; |
13 | 13 | use Doctrine\DBAL\Platforms\PostgreSQLPlatform; |
14 | 14 | use Doctrine\DBAL\Schema\LegacySchemaManagerFactory; |
15 | | -use Doctrine\Deprecations\PHPUnit\VerifyDeprecations; |
16 | 15 | use Doctrine\ORM\EntityManager; |
17 | 16 | use Doctrine\ORM\EntityManagerInterface; |
18 | 17 | use Doctrine\ORM\Mapping\ClassMetadata; |
|
28 | 27 | use Symfony\Bundle\DoctrineBundle\Tests\DependencyInjection\TestHydrator; |
29 | 28 | use Symfony\Component\Cache\Adapter\ArrayAdapter; |
30 | 29 | use Symfony\Component\Cache\Adapter\PhpArrayAdapter; |
31 | | -use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; |
32 | 30 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
33 | 31 | use Symfony\Component\DependencyInjection\Compiler\ResolveChildDefinitionsPass; |
34 | 32 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
57 | 55 |
|
58 | 56 | abstract class AbstractDoctrineExtensionTestCase extends TestCase |
59 | 57 | { |
60 | | - use VerifyDeprecations; |
61 | | - |
62 | 58 | abstract protected function loadFromFile(ContainerBuilder $container, string $file): void; |
63 | 59 |
|
64 | 60 | public function testDbalLoadFromXmlMultipleConnections(): void |
@@ -562,7 +558,6 @@ public function testSingleEntityManagerMultipleMappingBundleDefinitions(): void |
562 | 558 | [ |
563 | 559 | __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures' . DIRECTORY_SEPARATOR . 'Bundles' . DIRECTORY_SEPARATOR . 'AttributesBundle' . DIRECTORY_SEPARATOR . 'Entity', |
564 | 560 | ], |
565 | | - true, |
566 | 561 | ]); |
567 | 562 |
|
568 | 563 | $xmlDef = $container->getDefinition('doctrine.orm.default_xml_metadata_driver'); |
@@ -915,33 +910,6 @@ public function testDisablingLazyGhostOnOrm3Throws(): void |
915 | 910 | $this->loadContainer('orm_no_lazy_ghost'); |
916 | 911 | } |
917 | 912 |
|
918 | | - /** @group legacy */ |
919 | | - public function testDisablingReportFieldsWhereDeclaredOnOrm3Throws(): void |
920 | | - { |
921 | | - if (! interface_exists(EntityManagerInterface::class)) { |
922 | | - self::markTestSkipped('This test requires ORM'); |
923 | | - } |
924 | | - |
925 | | - $this->expectException(InvalidConfigurationException::class); |
926 | | - $this->expectExceptionMessage('Invalid configuration for path "doctrine.orm.entity_managers.default.report_fields_where_declared": The setting "report_fields_where_declared" cannot be disabled for ORM 3.'); |
927 | | - $this->loadContainer('orm_no_report_fields'); |
928 | | - } |
929 | | - |
930 | | - /** @group legacy */ |
931 | | - public function testEnablingReportFieldsWhereDeclaredOnOrm3IsDeprecated(): void |
932 | | - { |
933 | | - if (! interface_exists(EntityManagerInterface::class)) { |
934 | | - self::markTestSkipped('This test requires ORM'); |
935 | | - } |
936 | | - |
937 | | - if (class_exists(AnnotationDriver::class)) { |
938 | | - self::markTestSkipped('This test requires ORM 3.'); |
939 | | - } |
940 | | - |
941 | | - $this->expectDeprecationWithIdentifier('https://github.com/doctrine/DoctrineBundle/pull/1962'); |
942 | | - $this->loadContainer('orm_report_fields'); |
943 | | - } |
944 | | - |
945 | 913 | public function testResolveTargetEntity(): void |
946 | 914 | { |
947 | 915 | if (! interface_exists(EntityManagerInterface::class)) { |
|
0 commit comments