Skip to content

EspoCRM – Open Source CRM Application

Fix test

Yurii8d8a63867a58
diff --git a/tests/integration/Espo/Webhook/AclTest.php b/tests/integration/Espo/Webhook/AclTest.php
index 678ba8d08e..83173ff201 100644
--- a/tests/integration/Espo/Webhook/AclTest.php
+++ b/tests/integration/Espo/Webhook/AclTest.php
@@ -31,6 +31,7 @@ namespace tests\integration\Espo\Webhook;
use Espo\Core\Api\ControllerActionProcessor;
use Espo\Core\Api\ResponseWrapper;
+use Espo\Core\Utils\Config\ConfigWriter;
use Espo\ORM\EntityManager;
use Espo\Core\Exceptions\Forbidden;
@@ -142,6 +143,10 @@ class AclTest extends \tests\integration\Core\BaseTestCase
public function testApiUserHasAccess1()
{
+ $configWriter = $this->getInjectableFactory()->create(ConfigWriter::class);
+ $configWriter->set('webhookAllowedAddressList', ['test.com:443']);
+ $configWriter->save();
+
$this->createUser(
[
'userName' => 'api',