mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
15 lines
477 B
PHP
15 lines
477 B
PHP
<?php
|
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
|
|
|
namespace Icinga\Test {
|
|
|
|
use Icinga\Application\Test;
|
|
|
|
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
|
|
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
|
|
$configPath = getenv('ICINGAWEB_CONFIGDIR') ?: $basePath . '/test/config';
|
|
|
|
require $libraryPath . '/Application/Test.php';
|
|
Test::start($basePath, $configPath);
|
|
}
|