Skip to content

Commit

Permalink
Fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Dec 13, 2024
1 parent 1ba336f commit 10eb085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
require_once JPATH_LIBRARIES . '/loader.php';

// If JLoader still does not exist panic.
throw new RuntimeException('Joomla Platform not loaded.');
if (!class_exists('JLoader')) {
throw new RuntimeException('Joomla Platform not loaded.');
}
}

// Setup the autoloaders.
Expand Down

0 comments on commit 10eb085

Please sign in to comment.