// Fix ConfigurationTest

This commit is contained in:
rMalie
2011-10-25 15:15:35 +00:00
parent 45a639fb16
commit 3c85847608
+15 -9
View File
@@ -32,15 +32,15 @@ class ConfigurationTestCore
* getDefaultTests return an array of tests to executes. * getDefaultTests return an array of tests to executes.
* key are method name, value are parameters (false for no parameter) * key are method name, value are parameters (false for no parameter)
* all path are _PS_ROOT_DIR_ related * all path are _PS_ROOT_DIR_ related
* *
* @return array * @return array
*/ */
public static function getDefaultTests() public static function getDefaultTests()
{ {
return array( return array(
'system' => array( 'system' => array(
'fopen', 'fclose', 'fread', 'fwrite', 'fopen', 'fclose', 'fread', 'fwrite',
'rename', 'file_exists', 'unlink', 'rmdir', 'mkdir', 'rename', 'file_exists', 'unlink', 'rmdir', 'mkdir',
'getcwd', 'chdir', 'chmod' 'getcwd', 'chdir', 'chmod'
), ),
@@ -51,10 +51,12 @@ class ConfigurationTestCore
'config_dir' => 'config', 'config_dir' => 'config',
'cache_dir' => 'cache', 'cache_dir' => 'cache',
'sitemap' => 'sitemap.xml', 'sitemap' => 'sitemap.xml',
'log_dir' => 'log',
'img_dir' => 'img', 'img_dir' => 'img',
'mails_dir' => 'mails', 'mails_dir' => 'mails',
'module_dir' => 'modules', 'module_dir' => 'modules',
'theme_lang_dir' => 'themes/'._THEME_NAME_.'/lang/', 'theme_lang_dir' => 'themes/'._THEME_NAME_.'/lang',
'theme_cache_dir' => 'themes/'._THEME_NAME_.'/cache',
'translations_dir' => 'translations', 'translations_dir' => 'translations',
'customizable_products_dir' => 'upload', 'customizable_products_dir' => 'upload',
'virtual_products_dir' => 'download' 'virtual_products_dir' => 'download'
@@ -64,7 +66,7 @@ class ConfigurationTestCore
/** /**
* getDefaultTestsOp return an array of tests to executes. * getDefaultTestsOp return an array of tests to executes.
* key are method name, value are parameters (false for no parameter) * key are method name, value are parameters (false for no parameter)
* *
* @return array * @return array
*/ */
public static function getDefaultTestsOp() public static function getDefaultTestsOp()
@@ -73,15 +75,19 @@ class ConfigurationTestCore
return array( return array(
'fopen' => false, 'fopen' => false,
'register_globals' => false, 'register_globals' => false,
'gz' => false 'gz' => false,
'mcrypt' => false,
'magicquotes' => false,
'dom' => false,
'pdo_mysql' => false,
); );
} }
/** /**
* run all test defined in $tests * run all test defined in $tests
* *
* @param array $tests * @param array $tests
* @return array results of tests * @return array results of tests
*/ */
public static function check($tests) public static function check($tests)
{ {