fix: doctrine native lazy objects
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user