diff --git a/test/phpunit/AllTests.php b/test/phpunit/AllTests.php index 28d4f8cf7b3..5e898adc897 100644 --- a/test/phpunit/AllTests.php +++ b/test/phpunit/AllTests.php @@ -31,6 +31,12 @@ global $conf,$user,$langs,$db; require_once 'PHPUnit/Autoload.php'; require_once dirname(__FILE__).'/../../htdocs/master.inc.php'; +if ($langs->defaultlang != 'en_US') +{ + print "Error: Default language for company to run tests must be set to en_US or auto. Current is ".$langs->defaultlang."\n"; + exit; +} + if (empty($user->id)) { print "Load permissions for admin user nb 1\n"; diff --git a/test/phpunit/ContactTest.php b/test/phpunit/ContactTest.php index 84ad96e5e98..331de748cd9 100755 --- a/test/phpunit/ContactTest.php +++ b/test/phpunit/ContactTest.php @@ -36,6 +36,7 @@ if (empty($user->id)) $user->fetch(1); $user->getrights(); } + $conf->global->MAIN_DISABLE_ALL_MAILS=1;