Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/Tests/ORM/Mapping/OneToOneOwningSideMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,6 +18,8 @@

final class OneToOneOwningSideMappingTest extends TestCase
{
use VerifyDeprecations;

public function testItSurvivesSerialization(): void
{
$mapping = new OneToOneOwningSideMapping(
Expand Down Expand Up @@ -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,
Expand Down