Adding possibilty to run unit tests for com_weblinks with robo and codeception

This commit is contained in:
Yves Hoppe 2016-02-24 20:19:57 +01:00
parent 74852b9e18
commit 74d113ea70
1 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,6 @@
define("_JEXEC", 'true');
// Maximise error reporting.
ini_set('zend.ze1_compatibility_mode', '0');
error_reporting(E_ALL);
ini_set('display_errors', 1);
@ -86,10 +85,13 @@ if (!defined('JDEBUG'))
if (!defined('JPATH_COMPONENT_SITE'))
{
define('JPATH_COMPONENT_SITE', dirname(dirname(JPATH_BASE)) . '/src');
define('JPATH_COMPONENT_SITE', dirname(dirname(JPATH_BASE)) . '/src/component/com_weblinks');
}
if (!defined('JPATH_COMPONENT_ADMINISTRATOR'))
{
define('JPATH_COMPONENT_ADMINISTRATOR', dirname(dirname(JPATH_BASE)) . '/src/administrator/component/com_weblinks');
}
$_SERVER['HTTP_HOST'] = "localhost";