File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 // phpcs:enable
99}
1010
11+ if (! defined ('TEST_PATH ' )) {
12+ // This is used at Debian because tests
13+ // can be in a different place than the source code
14+ // phpcs:disable PSR1.Files.SideEffects
15+ define ('TEST_PATH ' , ROOT_PATH );
16+ // phpcs:enable
17+ }
18+
1119/**
1220 * Set precision to sane value, with higher values
1321 * things behave slightly unexpectedly, for example
Original file line number Diff line number Diff line change @@ -933,11 +933,11 @@ public function configPaths(): array
933933 {
934934 return [
935935 [
936- ROOT_PATH . 'test/test_data/config.inc.php ' ,
936+ TEST_PATH . 'test/test_data/config.inc.php ' ,
937937 true ,
938938 ],
939939 [
940- ROOT_PATH . 'test/test_data/config-nonexisting.inc.php ' ,
940+ TEST_PATH . 'test/test_data/config-nonexisting.inc.php ' ,
941941 false ,
942942 ],
943943 ];
Original file line number Diff line number Diff line change @@ -949,6 +949,7 @@ public function providerForTestPopulateRequestWithEncryptedQueryParamsWithInvali
949949 * @runInSeparateProcess
950950 * @preserveGlobalState disabled
951951 * @requires extension xdebug
952+ * @group ext-xdebug
952953 */
953954 public function testDownloadHeader (): void
954955 {
@@ -975,6 +976,7 @@ public function testDownloadHeader(): void
975976 * @runInSeparateProcess
976977 * @preserveGlobalState disabled
977978 * @requires extension xdebug
979+ * @group ext-xdebug
978980 */
979981 public function testDownloadHeader2 (): void
980982 {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function testGetDirContent(): void
2828 {
2929 $ this ->assertFalse ($ this ->fileListing ->getDirContent ('nonexistent directory ' ));
3030
31- $ fixturesDir = ROOT_PATH . 'test/classes/_data/file_listing ' ;
31+ $ fixturesDir = TEST_PATH . 'test/classes/_data/file_listing ' ;
3232
3333 $ dirContent = $ this ->fileListing ->getDirContent ($ fixturesDir );
3434 if (is_bool ($ dirContent )) {
@@ -46,7 +46,7 @@ public function testGetDirContent(): void
4646
4747 public function testGetFileSelectOptions (): void
4848 {
49- $ fixturesDir = ROOT_PATH . 'test/classes/_data/file_listing ' ;
49+ $ fixturesDir = TEST_PATH . 'test/classes/_data/file_listing ' ;
5050
5151 $ this ->assertFalse ($ this ->fileListing ->getFileSelectOptions ('nonexistent directory ' ));
5252
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function testCheckImgPathIncorrect(): void
7676 */
7777 public function testCheckImgPathFull (): void
7878 {
79- $ this ->object ->setFsPath (ROOT_PATH . 'test/classes/_data/gen_version_info/ ' );
79+ $ this ->object ->setFsPath (TEST_PATH . 'test/classes/_data/gen_version_info/ ' );
8080 $ this ->assertTrue ($ this ->object ->loadInfo ());
8181 $ this ->assertEquals ('Test Theme ' , $ this ->object ->getName ());
8282 $ this ->assertEquals ('5.3 ' , $ this ->object ->getVersion ());
You can’t perform that action at this time.
0 commit comments