mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
adapt StatusTests.php to work on both iTop repository and packaged zip
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
Reference in New Issue
Block a user