fix: doctrine native lazy objects

This commit is contained in:
2026-09-01 13:58:30 +02:00
parent a60e8357e8
commit 10ab2bd04b
7 changed files with 62 additions and 254 deletions
+5 -5
View File
@@ -14,7 +14,7 @@ use App\Entity\Embeddable\Communication;
use App\Entity\Teamer;
use App\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ObjectRepository;
use Doctrine\ORM\EntityRepository;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
@@ -511,7 +511,7 @@ class UserDataHandlerTest extends TestCase
$profileResponse = $this->createProfileResponse();
$repository = $this->createMock(ObjectRepository::class);
$repository = $this->createMock(EntityRepository::class);
$repository
->expects($this->once())
->method('findOneBy')
@@ -562,7 +562,7 @@ class UserDataHandlerTest extends TestCase
$profileResponse = $this->createProfileResponse();
$repository = $this->createMock(ObjectRepository::class);
$repository = $this->createMock(EntityRepository::class);
$repository
->expects($this->once())
->method('findOneBy')
@@ -607,7 +607,7 @@ class UserDataHandlerTest extends TestCase
$profileResponse = $this->createProfileResponse(null, null);
$repository = $this->createMock(ObjectRepository::class);
$repository = $this->createMock(EntityRepository::class);
$repository
->expects($this->once())
->method('findOneBy')
@@ -669,7 +669,7 @@ class UserDataHandlerTest extends TestCase
$profileResponse = $this->createProfileResponse();
$repository = $this->createMock(ObjectRepository::class);
$repository = $this->createMock(EntityRepository::class);
$repository
->expects($this->once())
->method('findOneBy')