function CoderReviewUpgrade7xTest::testTaxonomy7x in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/tests/coder_review_7x.test \CoderReviewUpgrade7xTest::testTaxonomy7x()
File
- coder_review/
tests/ coder_review_7x.test, line 332
Class
Code
function testTaxonomy7x() {
// N/A - http://drupal.org/node/224333#taxonomy_term_load_multiple
// N/A - http://drupal.org/node/224333#taxonomy_hooks
// N/A - http://drupal.org/node/224333#vocabulary_load_multiple
// http://drupal.org/node/224333#taxonomy_get_tree
$this
->assertCoderReviewFail(' $tree = taxonomy_get_tree($vid, $parent, $depth);');
$this
->assertCoderReviewFail(' $tree = taxonomy_get_tree($vid, $parent, $depth, $max_depth);');
$this
->assertCoderReviewFail(' $tree = taxonomy_get_tree($vid, $parent, -1);');
$this
->assertCoderReviewFail(' $tree = taxonomy_get_tree($vid, $parent, -1, $max_depth);');
$this
->assertCoderReviewPass(' $tree = taxonomy_get_tree($vid, $parent, $max_depth);');
// http://drupal.org/node/224333#taxonomy_tables
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {term_data}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {term_hierarchy}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {term_node}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {term_relation}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {term_synonym}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {vocabulary}")');
$this
->assertCoderReviewFail(' db_query("SELECT * FROM {vocabulary_node_types}")');
// http://drupal.org/node/224333#taxonomy_crud
$this
->assertCoderReviewFail(' taxonomy_get_term($tid);');
$this
->assertCoderReviewPass(' mytaxonomy_get_term($tid);');
$this
->assertCoderReviewFail(' taxonomy_save_term($term);');
$this
->assertCoderReviewPass(' mytaxonomy_save_term($term);');
$this
->assertCoderReviewFail(' taxonomy_term_save(array(\'tid\' => 123));');
$this
->assertCoderReviewFail(' taxonomy_del_term($tid);');
$this
->assertCoderReviewPass(' mytaxonomy_del_term($tid);');
$this
->assertCoderReviewFail(' taxonomy_save_vocabulary($vocab);');
$this
->assertCoderReviewPass(' mytaxonomy_save_vocabulary($vocab);');
$this
->assertCoderReviewFail(' taxonomy_vocabulary_save(array(\'tid\' => 123));');
$this
->assertCoderReviewFail(' taxonomy_del_vocabulary($vocab);');
$this
->assertCoderReviewPass(' mytaxonomy_del_vocabulary($vocab);');
// http://drupal.org/node/224333#taxonomy_paths
$this
->assertCoderReviewPass(' $url = url("taxonomy/term/123");');
$this
->assertCoderReviewFail(' $url = url("taxonomy/term/1+2+3");');
$this
->assertCoderReviewFail(' $url = url("taxonomy/term/1,2,3");');
$this
->assertCoderReviewFail(' $url = url("taxonomy/term/123/0");');
$this
->assertCoderReviewFail(' $url = url("taxonomy/term/1+2+3/0");');
$this
->assertCoderReviewFail(' $url = url("taxonomy/term/1,2,3/0");');
// http://drupal.org/node/224333#related_terms
$this
->assertCoderReviewFail(' $related = taxonomy_get_related($tid);');
// http://drupal.org/node/224333#taxonomy-node
}