Description
Tests for ContactPersonRepository fail due to a TypeError:
TypeError: Bitrix24\Lib\ContactPersons\Entity\ContactPerson::__construct(): Argument #10 ($bitrix24UserId) must be of type int, null given
The issue is in the builder — the userId field should be mandatory.
In the test data (yield 'active'), userId is currently missing or set to null. It needs to be populated with a valid integer value.
File
Add in yield in method contactPersonWithDifferentStatusesDataProvider
random_int(1, 1_000_000)
Example