File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace Doctrine \Tests \ORM \Mapping ;
66
7+ use Doctrine \Deprecations \PHPUnit \VerifyDeprecations ;
78use Doctrine \ORM \Mapping \DefaultNamingStrategy ;
89use Doctrine \ORM \Mapping \JoinColumnMapping ;
910use Doctrine \ORM \Mapping \OneToOneOwningSideMapping ;
1718
1819final 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 ,
You can’t perform that action at this time.
0 commit comments