diff --git a/tests/Install/InstallTest.php b/tests/Install/InstallTest.php index fe9bbd866..b747794ea 100644 --- a/tests/Install/InstallTest.php +++ b/tests/Install/InstallTest.php @@ -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');