function CoderUpgrade6xTest::testUpgrade6xDeprecatedMisc in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xDeprecatedMisc()
File
- tests/
coder_6x.test, line 266
Class
Code
function testUpgrade6xDeprecatedMisc() {
$this
->assertCoderFail(' custom_url_rewrite($url);');
$this
->assertCoderPass(' custom_url_rewrite_inbound($url);');
$this
->assertCoderFail(' $form_localtion = variable_get(\'comment_form_location\', COMMENT_FORM_SEPARATE_PAGE);');
$this
->assertCoderFail(' $form_localtion = variable_set(\'comment_form_location\', COMMENT_FORM_SEPARATE_PAGE);');
$this
->assertCoderFail(' $form_localtion = variable_del(\'comment_form_location\');');
$this
->assertCoderPass(' $form_localtion = variable_get(\'comment_form_location_page\', COMMENT_FORM_SEPARATE_PAGE);');
$this
->assertCoderFail(' $variable_name = \'comment_form_location\';');
$this
->assertCoderPass(' $variable_name = \'comment_form_location\' . \'_abc\';');
$this
->assertCoderFail(' $path = \'admin/content/comment/settings\';');
$this
->assertCoderFail(' $log_path = \'admin/logs/\';');
$this
->assertCoderFail(' $user_access_path = \'admin/user/access\';');
$this
->assertCoderFail(' $permission = user_access(\'administer access control\');');
$this
->assertCoderFail(' $ip = $_SERVER[\'REMOTE_ADDR\'];');
$this
->assertCoderFail(' global $locale;');
}