You are here

function CoderUpgrade6xTest::testUpgrade6xDeprecatedMisc in Coder 6

Same name and namespace in other branches
  1. 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xDeprecatedMisc()

File

tests/coder_6x.test, line 259

Class

CoderUpgrade6xTest

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;');
}