Skip to content

Commit

Permalink
Merge pull request #53 from fr3nch13/2.x-dev
Browse files Browse the repository at this point in the history
Fix path to paths.php
  • Loading branch information
fr3nch13 authored Aug 21, 2024
2 parents b12e0a4 + ab01b8b commit 9052937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plugin_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
* constants
*/
// use the application's/plugin's test app if it exists
if (file_exists(PLUGIN_ROOT . DS . 'test_app' . DS . 'config' . DS . 'paths.php')) {
require PLUGIN_ROOT . DS . 'test_app' . DS . 'config' . DS . 'paths.php';
if (file_exists(PLUGIN_ROOT . DS . 'tests' . DS . 'test_app' . DS . 'config' . DS . 'paths.php')) {
require PLUGIN_ROOT . DS . 'tests' . DS . 'test_app' . DS . 'config' . DS . 'paths.php';
} else {
// otherwise use the one here both for testing this plugin, and for ones that don't have a test_app.
require __DIR__ . DS . 'test_app' . DS . 'config' . DS . 'paths.php';
Expand Down

0 comments on commit 9052937

Please sign in to comment.