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

Commit 5ae7911

Browse files
authored
Merge pull request #264 from mesilov/dev
Dev
2 parents e80603b + b5bdadc commit 5ae7911

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/integration-tests.yml renamed to .github/workflows/integration.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ name: "Integration tests"
22

33
on:
44
push:
5-
branches:
6-
- 'master'
7-
- 'dev'
8-
- '2.x'
9-
paths:
10-
- 'src/**'
11-
- 'tests/**'
5+
pull_request:
126

137
env:
148
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"

src/Core/Batch.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ protected function getTraversable(bool $isHaltOnError): Generator
608608
'batchApiCommandUuid' => $batchResult->getApiCommand()->getUuid()->toString(),
609609
]
610610
);
611+
// todo try to multiplex requests
611612
$response = $batchResult->getResponseData();
612613

613614
// single queries

src/Core/BulkItemsReader/ReadStrategies/FilterWithoutBatchWithoutCountOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getTraversableList(string $apiMethod, array $order, array $filte
4545
'limit' => $limit,
4646
]);
4747

48-
// дефолтная стратегия из документации https://dev.1c-bitrix.ru/rest_help/rest_sum/start.php
48+
// Дефолтная стратегия из документации https://dev.1c-bitrix.ru/rest_help/rest_sum/start.php
4949
//
5050
//Особенности:
5151
//— ✅ отключён подсчёт количества элементов в выборке

tests/Integration/Fabric.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Bitrix24\SDK\Services\ServiceBuilder;
1313
use Monolog\Handler\StreamHandler;
1414
use Monolog\Logger;
15+
use Monolog\Processor\IntrospectionProcessor;
16+
use Monolog\Processor\MemoryUsageProcessor;
1517
use Psr\Log\LoggerInterface;
1618

1719
/**
@@ -45,6 +47,12 @@ public static function getBulkItemsReader(): BulkItemsReaderInterface
4547
*/
4648
public static function getCore(): CoreInterface
4749
{
50+
51+
print(print_r($_ENV, true));
52+
print(print_r($_ENV['BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK']));
53+
print(print_r($_ENV['BITRIX24_WEBHOOK']));
54+
exit();
55+
4856
return (new CoreBuilder())
4957
->withLogger(self::getLogger())
5058
->withWebhookUrl($_ENV['BITRIX24_PHP_SDK_PLAYGROUND_WEBHOOK'] ?? $_ENV['BITRIX24_WEBHOOK'])
@@ -58,8 +66,8 @@ public static function getLogger(): LoggerInterface
5866
{
5967
$log = new Logger('integration-test');
6068
$log->pushHandler(new StreamHandler(STDOUT, (int)$_ENV['INTEGRATION_TEST_LOG_LEVEL']));
61-
$log->pushProcessor(new \Monolog\Processor\MemoryUsageProcessor(true, true));
62-
$log->pushProcessor(new \Monolog\Processor\IntrospectionProcessor());
69+
$log->pushProcessor(new MemoryUsageProcessor(true, true));
70+
$log->pushProcessor(new IntrospectionProcessor());
6371

6472
return $log;
6573
}

0 commit comments

Comments
 (0)