public static function CoderUpgradeUnitTestCase::getInfo1 in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/coder_upgrade.test \CoderUpgradeUnitTestCase::getInfo1()
2 calls to CoderUpgradeUnitTestCase::getInfo1()
- CoderUpgradeUnitTestCase1::getInfo in coder_upgrade/
coder_upgrade.test - CoderUpgradeUnitTestCase2::getInfo in coder_upgrade/
coder_upgrade.test
File
- coder_upgrade/
coder_upgrade.test, line 15
Class
- CoderUpgradeUnitTestCase
- Unit tests for the upgrade routines.
Code
public static function getInfo1($subdir) {
// Always display these warnings since this function is only called when cache is cleared.
$settings = l('here', 'admin/config/development/coder/upgrade/settings');
// $msg = "WARNING: Do not run this test if the \"Replace files\" option is checked for this module."; // Change this setting $settings.";
$msg1 = '';
// if (variable_get('coder_upgrade_enable_debug_output', FALSE)) {
// $msg1 = " WARNING: Do not run this test if the \"Enable debug output from coder upgrade\" option is checked for this module."; // Change this setting $settings.";
// }
$msg2 = '';
// if (variable_get('coder_upgrade_enable_parser_debug_output', FALSE)) {
// $msg2 = " WARNING: Do not run this test if the \"Enable debug output from grammar parser\" option is checked for this module."; // Change this setting $settings.";
// }
// $msg3 = '';
// if (!variable_get('coder_upgrade_preserve_array_format', FALSE)) {
$msg3 = " NOTICE: During this test the \"Preserve array formatting\" option will enabled for this module. Afterward, this setting may be disabled {$settings}.";
// }
$msg = "WARNING: Do not run this test if any of these options is checked for this module: \"Replace files,\" \"Enable debug output from coder upgrade,\" or \"Enable debug output from grammar parser.\" Change these setting {$settings}.";
$dir = variable_get('coder_upgrade_dir_new', DEADWOOD_OLD);
return array(
'name' => "Run interface ({$subdir})",
'description' => "Test the output from the upgrade routines on the files in the files/{$dir}/{$subdir} directory.{$msg}{$msg1}{$msg2}{$msg3}",
'group' => 'Coder Upgrade',
);
}