Skip to content

Commit

Permalink
Fixed some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Aug 27, 2019
1 parent 78f9ddb commit 6cc7706
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/language/langConfValidationTest.php
Expand Up @@ -59,6 +59,19 @@ protected function setUp()
define('TOPIC_ROOT', 'root');
}

// The three following constants are defined in lib-plugins.php (since Geeklog 2..1)
if (!defined('RECAPTCHA_NO_SUPPORT')) {
define('RECAPTCHA_NO_SUPPORT', 0);
}

if (!defined('RECAPTCHA_SUPPORT_V2')) {
define('RECAPTCHA_SUPPORT_V2', 1);
}

if (!defined('RECAPTCHA_SUPPORT_V2_INVISIBLE')) {
define('RECAPTCHA_SUPPORT_V2_INVISIBLE', 2);
}

// there's a date() call somewhere - make PHP 5.2 shut up
$system_timezone = @date_default_timezone_get();
date_default_timezone_set($system_timezone);
Expand Down
1 change: 1 addition & 0 deletions tests/system/classes/templateClassTest.php
Expand Up @@ -18,6 +18,7 @@ protected function setUp()

$_CONF['language'] = Tst::LANGUAGE;
$_CONF['theme'] = Tst::THEME;
$_CONF['path_system'] = Tst::$root . 'system/';
$_CONF['path_data'] = Tst::$root . 'data/';
$_CONF['path_themes'] = Tst::$public . 'layout/';
$_CONF['path_layout'] = $_CONF['path_themes'] . $_CONF['theme'] . '/';
Expand Down

0 comments on commit 6cc7706

Please sign in to comment.