feat: upgrade phpunit to 12.5
This commit is contained in:
@@ -206,14 +206,14 @@ class BpnAuthenticatorTest extends TestCase
|
||||
$personalData->personId = 42;
|
||||
$personalData->addressId = 4711;
|
||||
|
||||
$apiClient = $this->createMock(ApiClient::class);
|
||||
$apiClient = $this->createStub(ApiClient::class);
|
||||
$apiClient->method('getPersonalData')->willReturn($personalData);
|
||||
$apiClient->method('getCrmAttributes')->willReturn($crmAttributes);
|
||||
|
||||
$repository = $this->createMock(EntityRepository::class);
|
||||
$repository = $this->createStub(EntityRepository::class);
|
||||
$repository->method('findOneBy')->willReturn($existing);
|
||||
|
||||
$entityManager = $this->createMock(EntityManagerInterface::class);
|
||||
$entityManager = $this->createStub(EntityManagerInterface::class);
|
||||
$entityManager->method('getRepository')->willReturn($repository);
|
||||
$entityManager
|
||||
->method('persist')
|
||||
@@ -225,19 +225,19 @@ class BpnAuthenticatorTest extends TestCase
|
||||
})
|
||||
;
|
||||
|
||||
$crypt = $this->createMock(Crypt::class);
|
||||
$crypt = $this->createStub(Crypt::class);
|
||||
$crypt->method('encrypt')->willReturn('encrypted');
|
||||
|
||||
$completenessChecker = $this->createMock(ProfileCompletenessChecker::class);
|
||||
$completenessChecker = $this->createStub(ProfileCompletenessChecker::class);
|
||||
$completenessChecker->method('isComplete')->willReturn(true);
|
||||
|
||||
return new BpnAuthenticator(
|
||||
$this->createMock(UrlGeneratorInterface::class),
|
||||
$this->createStub(UrlGeneratorInterface::class),
|
||||
$apiClient,
|
||||
$entityManager,
|
||||
$crypt,
|
||||
$completenessChecker,
|
||||
$this->createMock(LoggerInterface::class),
|
||||
$this->createStub(LoggerInterface::class),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user