• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/provider/messageservice/output.php
  • Класс: BitrixImConnectorProviderMessageserviceOutput
  • Вызов: Output::testConnect
public function testConnect(): Result
{
	$result = clone $this->result;

	if (
		$this->sender instanceof MessageServiceSenderBase
		&& $result->isSuccess()
	)
	{
		$testConnectionResult = $this->sender->testConnection();
		if (!$testConnectionResult->isSuccess())
		{
			$result->addErrors($testConnectionResult->getErrors());
		}
	}

	return $result;
}