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