mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 03:12:35 +01:00
Fix: Ob buffer cleanup on exception
# Fix: Ob buffer cleanup on exception The OB buffer capture was incorrectly cleaned up on exception. This fixes that. Also modified the SecurityTest to enable running it standalone
This commit is contained in:
@@ -26,11 +26,16 @@
|
||||
* \remarks Class that extends all PHPunit tests. To share similare code between each test.
|
||||
*/
|
||||
|
||||
// Workaround for false security issue with main.inc.php in tests:
|
||||
$_SERVER['PHP_SELF'] = "phpunit";
|
||||
|
||||
global $conf,$user,$langs,$db;
|
||||
//define('TEST_DB_FORCE_TYPE','mysql'); // This is to force using mysql driver
|
||||
//require_once 'PHPUnit/Autoload.php';
|
||||
require_once dirname(__FILE__).'/../../htdocs/master.inc.php';
|
||||
|
||||
|
||||
|
||||
if (empty($user->id)) {
|
||||
print "Load permissions for admin user nb 1\n";
|
||||
$user->fetch(1);
|
||||
|
||||
Reference in New Issue
Block a user