Skip to content

Commit

Permalink
Fix autoloading for tests
Browse files Browse the repository at this point in the history
Namespace based loading for core tests  did not work as intended (but hasn't
been used so far)
  • Loading branch information
splitbrain committed Sep 12, 2022
1 parent 1ca6792 commit 12ebce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function load_autoload($name) {

// test namespace
if (substr($name, 0, 14) === 'dokuwiki/test/') {
$file = DOKU_INC . '_test/' . substr($name, 14) . '.php';
$file = DOKU_INC . '_test/tests/inc/' . substr($name, 14) . '.php';
if (file_exists($file)) {
require $file;
return true;
Expand Down

0 comments on commit 12ebce9

Please sign in to comment.