feat: upgrade phpunit to 12.5

This commit is contained in:
Björn Fromme
2026-08-31 09:31:00 +02:00
parent 010cfe56b2
commit bfad61f1dd
95 changed files with 1436 additions and 1224 deletions
+7 -7
View File
@@ -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),
);
}