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

Commit

Permalink
Add additional tests and improve account status change
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mesilov committed Jul 6, 2024
1 parent 5da2ef1 commit d04c08a
Show file tree
Hide file tree
Showing 4 changed files with 316 additions and 46 deletions.
57 changes: 29 additions & 28 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="unit_tests">
<directory>./tests/Unit</directory>
</testsuite>
<testsuite name="integration_tests">
<directory>./tests/Integration</directory>
</testsuite>
<testsuite name="integration_tests_core">
<directory>./tests/Integration/Core/</directory>
</testsuite>
<testsuite name="integration_tests_scope_telephony">
<directory>./tests/Integration/Services/Telephony/</directory>
</testsuite>
<testsuite name="integration_tests_scope_user">
<directory>./tests/Integration/Services/User/</directory>
</testsuite>
<testsuite name="integration_tests_scope_workflows">
<directory>./tests/Integration/Services/Workflows/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="unit_tests">
<directory>./tests/Unit</directory>
<exclude>./tests/Unit/Application/Contracts/Bitrix24Accounts/Entity/Bitrix24AccountInterfaceTest.php</exclude>
</testsuite>
<testsuite name="integration_tests">
<directory>./tests/Integration</directory>
</testsuite>
<testsuite name="integration_tests_core">
<directory>./tests/Integration/Core/</directory>
</testsuite>
<testsuite name="integration_tests_scope_telephony">
<directory>./tests/Integration/Services/Telephony/</directory>
</testsuite>
<testsuite name="integration_tests_scope_user">
<directory>./tests/Integration/Services/User/</directory>
</testsuite>
<testsuite name="integration_tests_scope_workflows">
<directory>./tests/Integration/Services/Workflows/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
use Bitrix24\SDK\Core\Exceptions\InvalidArgumentException;
use Carbon\CarbonImmutable;
use Generator;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Uid\Uuid;

#[CoversClass(Bitrix24AccountInterface::class)]
class Bitrix24AccountInterfaceReferenceImplementationTest extends Bitrix24AccountInterfaceTest
{
protected function createBitrix24AccountImplementation(
Expand Down
Loading

0 comments on commit d04c08a

Please sign in to comment.