Skip to content

[Bug in SDK]: fix bitrix24account unit test #141

@KarlsonComplete

Description

@KarlsonComplete

version(s) affected

1.2.0

Description

after refactoring the constructor by removing status, createdAt, and updatedAt from its parameter list, now we initializing them with default values inside the constructor.

How to reproduce

a few examples :
✘ test getStatus method with account-status-active

├ Failed asserting that two values of enumeration Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus are equal, new does not match expected active.

│ /var/www/html/vendor/bitrix24/b24phpsdk/tests/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceTest.php:174

✘ test getCreatedAt method with valid-update

├ Failed asserting that false is true.

│ /var/www/html/vendor/bitrix24/b24phpsdk/tests/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceTest.php:408

✘ test getUpdatedAt method with valid-update-same-scope

├ Failed asserting that false is true.

│ /var/www/html/vendor/bitrix24/b24phpsdk/tests/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceTest.php:435

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bug in SDKSomething isn't working in SDK

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions