Skip to content

Commit 0c73cf9

Browse files
authored
Merge pull request doctrine#12136 from doctrine/3.6.x
Merge 3.6.x up into 4.0.x
2 parents c03ed69 + fdc88ba commit 0c73cf9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Doctrine\Tests\ORM\Mapping;
66

7+
use Doctrine\Deprecations\PHPUnit\VerifyDeprecations;
78
use Doctrine\ORM\Mapping\DefaultNamingStrategy;
89
use Doctrine\ORM\Mapping\JoinColumnMapping;
910
use Doctrine\ORM\Mapping\OneToOneOwningSideMapping;
@@ -17,6 +18,8 @@
1718

1819
final class OneToOneOwningSideMappingTest extends TestCase
1920
{
21+
use VerifyDeprecations;
22+
2023
public function testItSurvivesSerialization(): void
2124
{
2225
$mapping = new OneToOneOwningSideMapping(
@@ -48,6 +51,15 @@ public function testNullableDefaults(
4851
array $mappingArray,
4952
): void {
5053
$namingStrategy = new DefaultNamingStrategy();
54+
if ($expectDeprecation) {
55+
$this->expectDeprecationWithIdentifier(
56+
'https://github/doctrine/orm/pull/12125',
57+
);
58+
} else {
59+
$this->expectNoDeprecationWithIdentifier(
60+
'https://github/doctrine/orm/pull/12125',
61+
);
62+
}
5163

5264
$mapping = OneToOneOwningSideMapping::fromMappingArrayAndName(
5365
$mappingArray,

0 commit comments

Comments
 (0)