Skip to content

[Feature in SDK]: Fix ContactPerson unit tests (missing required bitrix24userId field) #365

@KarlsonComplete

Description

@KarlsonComplete

Description

Unit test for ContactPerson fail due to a TypeError:
TypeError: Bitrix24\Lib\ContactPersons\Entity\ContactPerson::__construct(): Argument #10 ($bitrix24UserId) must be of type int, null given, called in /var/www/html/tests/Unit/ContactPersons/Entity/ContactPersonTest.php on line 45

The issue is in the builder — the userId field should be mandatory.

File

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions