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);