You are here

function CoderReviewUpgrade7xTest::testMisc7x in Coder 7.2

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

???

File

coder_review/tests/coder_review_7x.test, line 689

Class

CoderReviewUpgrade7xTest
???

Code

function testMisc7x() {

  // N/A - http://drupal.org/node/224333#sticky_headers
  // N/A - http://drupal.org/node/224332#implementation_hook_comment
  // http://drupal.org/node/224333#book_toc_parameters
  $this
    ->assertCoderReviewFail('  $toc = book_toc($bid, array(), 9);');
  $this
    ->assertCoderReviewFail('  $toc = book_toc($bid, array());');
  $this
    ->assertCoderReviewFail('  $toc = book_toc($bid, $foo, 9);');
  $this
    ->assertCoderReviewPass('  $toc = book_toc($bid, 9);');
  $this
    ->assertCoderReviewPass('  $toc = book_toc($bid, 9, array());');
  $this
    ->assertCoderReviewPass('  $toc = book_toc($bid, 9, $foo);');

  // http://drupal.org/node/224333#referer_uri
  $this
    ->assertCoderReviewFail('  $referer = referer_uri();');
  $this
    ->assertCoderReviewFail('  if (referer_uri())');
  $this
    ->assertCoderReviewPass('  $referer = foo_referer_uri();');

  // http://drupal.org/node/224333#drupal_clone
  $this
    ->assertCoderReviewFail('  $clone = drupal_clone($node);');
  $this
    ->assertCoderReviewFail('  if (drupal_clone($node))');
  $this
    ->assertCoderReviewPass('  $clone = clone $node;');
  $this
    ->assertCoderReviewPass('  $clone = foo_drupal_clone($node);');
  $this
    ->assertCoderReviewFail('  node_invoke_nodeapi($node, $hook);');

  // http://drupal.org/node/224333#actions_synchronize
  $this
    ->assertCoderReviewFail('  actions_synchronize($actions_in_code);');
  $this
    ->assertCoderReviewFail('  actions_synchronize($foo, $delete_orphans);');
  $this
    ->assertCoderReviewPass('  actions_synchronize($delete_orphans);');

  // http://drupal.org/node/224333#distauth
  // http://drupal.org/node/224333#trigger_overhaul
  // http://drupal.org/node/224333#hook_entity_load
}