From 9a098bed40f5e469e21f13914f35d6b736e8d006 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Fri, 3 May 2024 17:31:53 +0300 Subject: [PATCH] update --- web/tests/Unit/AHostingSubscriptionCreateTest.php | 2 +- web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/tests/Unit/AHostingSubscriptionCreateTest.php b/web/tests/Unit/AHostingSubscriptionCreateTest.php index c23d698..c258c24 100644 --- a/web/tests/Unit/AHostingSubscriptionCreateTest.php +++ b/web/tests/Unit/AHostingSubscriptionCreateTest.php @@ -193,7 +193,7 @@ class AHostingSubscriptionCreateTest extends ActionTestCase $this->assertTrue(Str::contains($apacheConfigTest,'Syntax OK')); // Check domain is accessible - shell_exec('sudo echo "127.0.0.1 '.$hostingSubscriptionDomain.'" | sudo tee -a /etc/hosts'); + shell_exec('sudo echo "0.0.0.0 '.$hostingSubscriptionDomain.'" | sudo tee -a /etc/hosts'); $domainAccess = shell_exec('curl -s -o /dev/null -w "%{http_code}" http://'.$hostingSubscriptionDomain); $this->assertTrue($domainAccess == 200); diff --git a/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php b/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php index a2fe4df..e7797a6 100644 --- a/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php +++ b/web/tests/Unit/MicroweberHostingSubscriptionCreateTest.php @@ -87,7 +87,7 @@ class MicroweberHostingSubscriptionCreateTest extends ActionTestCase // Check domain is accessible - shell_exec('sudo echo "127.0.0.1 '.$hostingSubscriptionDomain.'" | sudo tee -a /etc/hosts'); + shell_exec('sudo echo "0.0.0.0 '.$hostingSubscriptionDomain.'" | sudo tee -a /etc/hosts'); $domainAccess = shell_exec('curl -s -o /dev/null -w "%{http_code}" http://'.$hostingSubscriptionDomain); $this->assertTrue($domainAccess == 200);