File tree Expand file tree Collapse file tree 10 files changed +14
-19
lines changed
Unit/Application/Contracts Expand file tree Collapse file tree 10 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
33 xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals =" false" colors =" true"
4- bootstrap =" tests/bootstrap.php" failOnRisky =" false " failOnWarning =" false " >
4+ bootstrap =" tests/bootstrap.php" failOnRisky =" true " failOnWarning =" true " >
55 <php >
66 <ini name =" error_reporting" value =" -1" />
77 </php >
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Bitrix24 \SDK \Tests \Unit \ Application \Contracts \Bitrix24Accounts \Entity ;
5+ namespace Bitrix24 \SDK \Tests \Application \Contracts \Bitrix24Accounts \Entity ;
66
77use Bitrix24 \SDK \Application \ApplicationStatus ;
88use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountInterface ;
1212use Bitrix24 \SDK \Core \Exceptions \InvalidArgumentException ;
1313use Bitrix24 \SDK \Core \Exceptions \UnknownScopeCodeException ;
1414use Bitrix24 \SDK \Core \Response \DTO \RenewedAuthToken ;
15- use Bitrix24 \SDK \Services \Telephony \Call \Service \Call ;
1615use Carbon \CarbonImmutable ;
1716use Generator ;
1817use PHPUnit \Framework \Attributes \CoversClass ;
2221use PHPUnit \Framework \TestCase ;
2322use Symfony \Component \Uid \Uuid ;
2423use Throwable ;
24+
2525#[CoversClass(Bitrix24AccountInterface::class)]
2626abstract class Bitrix24AccountInterfaceTest extends TestCase
2727{
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Bitrix24 \SDK \Tests \Unit \ Application \Contracts \Bitrix24Accounts \Repository ;
5+ namespace Bitrix24 \SDK \Tests \Application \Contracts \Bitrix24Accounts \Repository ;
66
77use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountInterface ;
88use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountStatus ;
2020use PHPUnit \Framework \Attributes \TestDox ;
2121use PHPUnit \Framework \TestCase ;
2222use Symfony \Component \Uid \Uuid ;
23- use Throwable ;
2423
2524#[CoversClass(Bitrix24AccountInterface::class)]
2625abstract class Bitrix24AccountRepositoryInterfaceTest extends TestCase
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Bitrix24 \SDK \Tests \Unit \ Application \Contracts \ContactPersons \Entity ;
5+ namespace Bitrix24 \SDK \Tests \Application \Contracts \ContactPersons \Entity ;
66
77use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonInterface ;
88use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonStatus ;
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- namespace Bitrix24 \SDK \Tests \Unit \ Application \Contracts \ContactPersons \Repository ;
5+ namespace Bitrix24 \SDK \Tests \Application \Contracts \ContactPersons \Repository ;
66
77use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonInterface ;
88use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonStatus ;
Original file line number Diff line number Diff line change 44
55namespace Bitrix24 \SDK \Tests \Unit \Application \Contracts \Bitrix24Accounts \Entity ;
66
7- use Bitrix24 \SDK \Application \ApplicationStatus ;
87use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountInterface ;
98use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountStatus ;
109use Bitrix24 \SDK \Core \Credentials \AuthToken ;
1110use Bitrix24 \SDK \Core \Credentials \Scope ;
12- use Bitrix24 \SDK \Core \ Exceptions \ InvalidArgumentException ;
11+ use Bitrix24 \SDK \Tests \ Application \ Contracts \ Bitrix24Accounts \ Entity \ Bitrix24AccountInterfaceTest ;
1312use Carbon \CarbonImmutable ;
14- use Generator ;
1513use PHPUnit \Framework \Attributes \CoversClass ;
16- use PHPUnit \Framework \TestCase ;
1714use Symfony \Component \Uid \Uuid ;
15+
1816#[CoversClass(Bitrix24AccountInterface::class)]
19- class Bitrix24AccountInterfaceReferenceImplementationTest extends Bitrix24AccountInterfaceTest
17+ class
18+ Bitrix24AccountInterfaceReferenceImplementationTest extends Bitrix24AccountInterfaceTest
2019{
2120 protected function createBitrix24AccountImplementation (
2221 Uuid $ uuid ,
Original file line number Diff line number Diff line change 44
55namespace Bitrix24 \SDK \Tests \Unit \Application \Contracts \Bitrix24Accounts \Repository ;
66
7- use Bitrix24 \SDK \Application \ApplicationStatus ;
87use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountInterface ;
98use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountStatus ;
109use Bitrix24 \SDK \Application \Contracts \Bitrix24Accounts \Repository \Bitrix24AccountRepositoryInterface ;
1110use Bitrix24 \SDK \Core \Credentials \AuthToken ;
1211use Bitrix24 \SDK \Core \Credentials \Scope ;
13- use Bitrix24 \SDK \Core \ Exceptions \ InvalidArgumentException ;
12+ use Bitrix24 \SDK \Tests \ Application \ Contracts \ Bitrix24Accounts \ Repository \ Bitrix24AccountRepositoryInterfaceTest ;
1413use Bitrix24 \SDK \Tests \Integration \Fabric ;
15- use Bitrix24 \SDK \Tests \Unit \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountInterfaceTest ;
1614use Bitrix24 \SDK \Tests \Unit \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountReferenceEntityImplementation ;
1715use Carbon \CarbonImmutable ;
18- use Generator ;
1916use PHPUnit \Framework \Attributes \CoversClass ;
20- use PHPUnit \Framework \TestCase ;
2117use Symfony \Component \Uid \Uuid ;
2218
2319#[CoversClass(Bitrix24AccountRepositoryInterface::class)]
Original file line number Diff line number Diff line change 66
77use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonInterface ;
88use Bitrix24 \SDK \Application \Contracts \ContactPersons \Entity \ContactPersonStatus ;
9+ use Bitrix24 \SDK \Tests \Application \Contracts \ContactPersons \Entity \ContactPersonInterfaceTest ;
910use Carbon \CarbonImmutable ;
1011use Darsyn \IP \Version \Multi as IP ;
1112use libphonenumber \PhoneNumber ;
Original file line number Diff line number Diff line change 99use Bitrix24 \SDK \Application \Contracts \ContactPersons \Exceptions \ContactPersonNotFoundException ;
1010use Bitrix24 \SDK \Application \Contracts \ContactPersons \Repository \ContactPersonRepositoryInterface ;
1111use Bitrix24 \SDK \Core \Exceptions \InvalidArgumentException ;
12+ use libphonenumber \PhoneNumber ;
1213use Psr \Log \LoggerInterface ;
1314use Symfony \Component \Uid \Uuid ;
14- use libphonenumber \PhoneNumber ;
1515
1616
1717class InMemoryContactPersonRepositoryImplementation implements ContactPersonRepositoryInterface
Original file line number Diff line number Diff line change 1111use Bitrix24 \SDK \Application \Contracts \ContactPersons \Repository \ContactPersonRepositoryInterface ;
1212use Bitrix24 \SDK \Core \Credentials \AuthToken ;
1313use Bitrix24 \SDK \Core \Credentials \Scope ;
14+ use Bitrix24 \SDK \Tests \Application \Contracts \ContactPersons \Repository \ContactPersonRepositoryInterfaceTest ;
1415use Bitrix24 \SDK \Tests \Integration \Fabric ;
1516use Bitrix24 \SDK \Tests \Unit \Application \Contracts \Bitrix24Accounts \Entity \Bitrix24AccountReferenceEntityImplementation ;
1617use Bitrix24 \SDK \Tests \Unit \Application \Contracts \ContactPersons \Entity \ContactPersonReferenceEntityImplementation ;
1718use Carbon \CarbonImmutable ;
1819use Darsyn \IP \Version \Multi as IP ;
19- use Generator ;
2020use libphonenumber \PhoneNumber ;
2121use PHPUnit \Framework \Attributes \CoversClass ;
2222use Symfony \Component \Uid \Uuid ;
You can’t perform that action at this time.
0 commit comments