function CoderUpgrade6xTest::testUpgrade6xTaxonomy in Coder 6
Same name and namespace in other branches
- 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xTaxonomy()
File
- tests/
coder_6x.test, line 135
Class
Code
function testUpgrade6xTaxonomy() {
$this
->assertCoderFail(' taxonomy_get_vocabulary($vid);');
$this
->assertCoderFail(' taxonomy_node_get_terms($nid);');
$this
->assertCoderFail(' taxonomy_node_get_terms($node->nid);');
$this
->assertCoderFail(' taxonomy_node_get_terms(123);');
$this
->assertCoderPass(' taxonomy_node_get_terms($node);');
$this
->assertCoderFail(' taxonomy_node_get_terms_by_vocabulary($nid);');
$this
->assertCoderFail(' taxonomy_node_get_terms_by_vocabulary($node->nid);');
$this
->assertCoderFail(' taxonomy_node_get_terms_by_vocabulary(123);');
$this
->assertCoderPass(' taxonomy_node_get_terms_by_vocabulary($node);');
$this
->assertCoderFail(' taxonomy_node_delete($nid);');
$this
->assertCoderFail(' taxonomy_node_delete($node->nid);');
$this
->assertCoderFail(' taxonomy_node_delete(123);');
$this
->assertCoderPass(' taxonomy_node_delete($node);');
$this
->assertCoderFail(' taxonomy_node_save($nid);');
$this
->assertCoderFail(' taxonomy_node_save($node->nid);');
$this
->assertCoderFail(' taxonomy_node_save(123);');
$this
->assertCoderPass(' taxonomy_node_save($node);');
}