You are here

function CoderReviewUpgrade7xTest::testBlock7x in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/tests/coder_review_7x.test \CoderReviewUpgrade7xTest::testBlock7x()

File

coder_review/tests/coder_review_7x.test, line 242

Class

CoderReviewUpgrade7xTest

Code

function testBlock7x() {

  // TEST MODULE - http://drupal.org/node/224333#block_optional
  // N/A - http://drupal.org/node/224333#hook_block_info_alter
  // http://drupal.org/node/224333#remove_op
  $this
    ->assertCoderReviewFail("  function mymodule_block(\$op, \$delta, \$edit) {\n}");
  $this
    ->assertCoderReviewFail("  function mymodule_block(\$delta, \$edit) {\n  if (\$op == 'list') {\n  }\n}");
  $this
    ->assertCoderReviewFail("  function mymodule_block(\$delta, \$edit) {\n  switch (\$op) {\n  case 'list':\n  }\n}");
}