mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
d2859aec61
commit
9a098bed40
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue