File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33/**
44 * Class BootstrapFCPATHTest
55 *
6- * This test confirms that the tests/_support/_bootstrap .php
6+ * This test confirms that the bootstrap .php
77 * will set the correct FCPATH regardless of the current directory
88 *
99 * It writes a file in the temp directory that loads the bootstrap file
@@ -77,8 +77,11 @@ private function fileContents()
7777 {
7878 $ fileContents = '' ;
7979 $ fileContents .= '<?php ' . PHP_EOL ;
80+ $ fileContents .= "define('HOMEPATH', ' " . $ this ->currentDir . "' . '/../../../'); " . PHP_EOL ;
81+ $ fileContents .= "define('CONFIGPATH', ' " . $ this ->currentDir . "' . '/../../../app/Config/'); " . PHP_EOL ;
82+ $ fileContents .= "define('PUBLICPATH', ' " . $ this ->currentDir . "' . '/../../../public/'); " . PHP_EOL ;
8083 $ fileContents .= "include_once ' " . $ this ->currentDir . "' . '/../../../vendor/autoload.php'; " . PHP_EOL ;
81- $ fileContents .= "include_once ' " . $ this ->currentDir . "' . '/../../../tests/_support/_bootstrap .php'; " . PHP_EOL ;
84+ $ fileContents .= "include_once ' " . $ this ->currentDir . "' . '/../../../system/Test/bootstrap .php'; " . PHP_EOL ;
8285 $ fileContents .= '// return value of FCPATH ' . PHP_EOL ;
8386 $ fileContents .= 'echo FCPATH; ' . PHP_EOL ;
8487
You can’t perform that action at this time.
0 commit comments