This commit is contained in:
Bozhidar 2024-05-03 17:31:53 +03:00
parent d2859aec61
commit 9a098bed40
2 changed files with 2 additions and 2 deletions

View file

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

View file

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