You are here

function CoderReviewUpgrade6xTest::testUpgrade6xTaxonomy in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xTaxonomy()

???

File

coder_review/tests/coder_review_6x.test, line 173

Class

CoderReviewUpgrade6xTest
???

Code

function testUpgrade6xTaxonomy() {
  $this
    ->assertCoderReviewFail('  taxonomy_get_vocabulary($vid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms($nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms($node->nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms(123);');
  $this
    ->assertCoderReviewPass('  taxonomy_node_get_terms($node);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms_by_vocabulary($nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms_by_vocabulary($node->nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_get_terms_by_vocabulary(123);');
  $this
    ->assertCoderReviewPass('  taxonomy_node_get_terms_by_vocabulary($node);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_delete($nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_delete($node->nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_delete(123);');
  $this
    ->assertCoderReviewPass('  taxonomy_node_delete($node);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_save($nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_save($node->nid);');
  $this
    ->assertCoderReviewFail('  taxonomy_node_save(123);');
  $this
    ->assertCoderReviewPass('  taxonomy_node_save($node);');
}