diff --git a/tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php b/tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php index 86ffd56cf5..122508b424 100644 --- a/tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php +++ b/tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php @@ -4,6 +4,7 @@ namespace Doctrine\Tests\ORM\Mapping; +use Doctrine\Deprecations\PHPUnit\VerifyDeprecations; use Doctrine\ORM\Mapping\DefaultNamingStrategy; use Doctrine\ORM\Mapping\JoinColumnMapping; use Doctrine\ORM\Mapping\OneToOneOwningSideMapping; @@ -17,6 +18,8 @@ final class OneToOneOwningSideMappingTest extends TestCase { + use VerifyDeprecations; + public function testItSurvivesSerialization(): void { $mapping = new OneToOneOwningSideMapping( @@ -48,6 +51,15 @@ public function testNullableDefaults( array $mappingArray, ): void { $namingStrategy = new DefaultNamingStrategy(); + if ($expectDeprecation) { + $this->expectDeprecationWithIdentifier( + 'https://github/doctrine/orm/pull/12125', + ); + } else { + $this->expectNoDeprecationWithIdentifier( + 'https://github/doctrine/orm/pull/12125', + ); + } $mapping = OneToOneOwningSideMapping::fromMappingArrayAndName( $mappingArray,