Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit d04c08a

Browse files
committed
Add additional tests and improve account status change
This update adds more unit tests to validate application behavior. Particularly, tests for methods like 'isApplicationTokenValid', 'getCreatedAt', and 'getUpdatedAt' have been included. Also, the account status change from 'active' to 'blocked' has been corrected. Signed-off-by: mesilov <[email protected]>
1 parent 5da2ef1 commit d04c08a

File tree

4 files changed

+316
-46
lines changed

4 files changed

+316
-46
lines changed

phpunit.xml.dist

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php" failOnRisky="true" failOnWarning="true">
3-
<php>
4-
<ini name="error_reporting" value="-1"/>
5-
</php>
6-
<testsuites>
7-
<testsuite name="unit_tests">
8-
<directory>./tests/Unit</directory>
9-
</testsuite>
10-
<testsuite name="integration_tests">
11-
<directory>./tests/Integration</directory>
12-
</testsuite>
13-
<testsuite name="integration_tests_core">
14-
<directory>./tests/Integration/Core/</directory>
15-
</testsuite>
16-
<testsuite name="integration_tests_scope_telephony">
17-
<directory>./tests/Integration/Services/Telephony/</directory>
18-
</testsuite>
19-
<testsuite name="integration_tests_scope_user">
20-
<directory>./tests/Integration/Services/User/</directory>
21-
</testsuite>
22-
<testsuite name="integration_tests_scope_workflows">
23-
<directory>./tests/Integration/Services/Workflows/</directory>
24-
</testsuite>
25-
</testsuites>
26-
<source>
27-
<include>
28-
<directory>./src</directory>
29-
</include>
30-
</source>
3+
<php>
4+
<ini name="error_reporting" value="-1"/>
5+
</php>
6+
<testsuites>
7+
<testsuite name="unit_tests">
8+
<directory>./tests/Unit</directory>
9+
<exclude>./tests/Unit/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceTest.php</exclude>
10+
</testsuite>
11+
<testsuite name="integration_tests">
12+
<directory>./tests/Integration</directory>
13+
</testsuite>
14+
<testsuite name="integration_tests_core">
15+
<directory>./tests/Integration/Core/</directory>
16+
</testsuite>
17+
<testsuite name="integration_tests_scope_telephony">
18+
<directory>./tests/Integration/Services/Telephony/</directory>
19+
</testsuite>
20+
<testsuite name="integration_tests_scope_user">
21+
<directory>./tests/Integration/Services/User/</directory>
22+
</testsuite>
23+
<testsuite name="integration_tests_scope_workflows">
24+
<directory>./tests/Integration/Services/Workflows/</directory>
25+
</testsuite>
26+
</testsuites>
27+
<source>
28+
<include>
29+
<directory>./src</directory>
30+
</include>
31+
</source>
3132
</phpunit>

tests/Unit/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceReferenceImplementationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
use Bitrix24\SDK\Core\Exceptions\InvalidArgumentException;
1313
use Carbon\CarbonImmutable;
1414
use Generator;
15+
use PHPUnit\Framework\Attributes\CoversClass;
1516
use PHPUnit\Framework\TestCase;
1617
use Symfony\Component\Uid\Uuid;
17-
18+
#[CoversClass(Bitrix24AccountInterface::class)]
1819
class Bitrix24AccountInterfaceReferenceImplementationTest extends Bitrix24AccountInterfaceTest
1920
{
2021
protected function createBitrix24AccountImplementation(

0 commit comments

Comments
 (0)