mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-27 12:39:05 +00:00
Adding possibilty to run unit tests for com_weblinks with robo and codeception
This commit is contained in:
parent
74852b9e18
commit
74d113ea70
@ -4,7 +4,6 @@
|
|||||||
define("_JEXEC", 'true');
|
define("_JEXEC", 'true');
|
||||||
|
|
||||||
// Maximise error reporting.
|
// Maximise error reporting.
|
||||||
ini_set('zend.ze1_compatibility_mode', '0');
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
|
||||||
@ -86,10 +85,13 @@ if (!defined('JDEBUG'))
|
|||||||
|
|
||||||
if (!defined('JPATH_COMPONENT_SITE'))
|
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";
|
$_SERVER['HTTP_HOST'] = "localhost";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user