Fix install test script

This commit is contained in:
DariusIII
2017-11-24 15:46:02 +01:00
parent df7d3305e7
commit 232e2a0362
+4 -4
View File
@@ -13,8 +13,8 @@
namespace tests;
require_once dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'bootstrap.php';
include_once dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'nntmux' . DIRECTORY_SEPARATOR . 'constants.php';
require_once \dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'bootstrap/autoload.php';
include_once \dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'nntmux' . DIRECTORY_SEPARATOR . 'constants.php';
use App\Extensions\util\Versions;
use nntmux\config\Configure;
@@ -39,8 +39,8 @@ class InstallTest extends \PHPUnit\Framework\TestCase
public function testFullInstall()
{
if (!defined('NN_INSTALLER')) {
define('NN_INSTALLER', true);
if (! \defined('NN_INSTALLER')) {
\define('NN_INSTALLER', true);
}
$this->config = new Configure('install');