Skip to content

Commit

Permalink
Fix joomla 3.5.0 loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed Mar 28, 2016
1 parent abbf034 commit 3672d29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ script:
- composer phpunit-wordpress

- composer prepare-joomla
- cat ./resources/joomla/configuration.php
- composer phpunit-joomla

# Other tests
Expand Down
3 changes: 1 addition & 2 deletions tests/autoload/cms-joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
define('JPATH_BASE', CMS_PATH_JOOMLA);

require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_LIBRARIES . '/import.legacy.php';
require_once JPATH_LIBRARIES . '/cms.php';
require_once JPATH_BASE . '/includes/framework.php';

JFactory::getApplication('site');
5 changes: 4 additions & 1 deletion tests/extentions/joomla-plugin/jbzoophpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ class PlgSystemJBZooPHPUnit extends JPlugin
public function onAfterInitialise()
{
if (!class_exists('\JBZoo\CrossCMS\Cms')) {
if ($autoloadPath = realpath('../../vendor/autoload.php')) {
if ($autoloadPath = realpath('./../../vendor/autoload.php')) {
require_once $autoloadPath;
}
if ($autoloadPath = realpath('./../../../vendor/autoload.php')) {
require_once $autoloadPath;
}
}
Expand Down

0 comments on commit 3672d29

Please sign in to comment.