Skip to content

Commit 2f87f2b

Browse files
committed
Update bootstrap test for new constants
1 parent 3500362 commit 2f87f2b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/system/Test/BootstrapFCPATHTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

0 commit comments

Comments
 (0)