adapt StatusTests.php to work on both iTop repository and packaged zip

This commit is contained in:
odain
2020-08-05 12:03:35 +02:00
parent c98c364714
commit e3a653010a
2 changed files with 4 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ class StatusTest extends ItopTestCase {
*
*/
public function testStatusWrongUrl() {
$sPath = APPROOT . 'status_wrong.php';
$sPath = 'status_wrong.php';
exec("php $sPath", $aOutput, $iRet);
@@ -31,7 +31,7 @@ class StatusTest extends ItopTestCase {
*
*/
public function testStatusGood() {
$sPath = APPROOT . 'status.php';
$sPath = 'status.php';
exec("php $sPath", $aOutput, $iRet);
@@ -42,7 +42,7 @@ class StatusTest extends ItopTestCase {
*
*/
public function testStatusGoodWithJson() {
$sPath = APPROOT . 'status.php';
$sPath = 'status.php';
exec("php $sPath", $aOutput, $iRet);

View File

@@ -1,8 +1,7 @@
<?php
//Include status functions
require_once(__DIR__ . '/sources/application/status/status.inc.php');
require_once(__DIR__.'/../../sources/application/status/status.inc.php');
//Do check Status
try
{