function CoderUpgrade6xTest::testUpgrade6xBookAPI in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xBookAPI()
File
- tests/
coder_6x.test, line 225
Class
Code
function testUpgrade6xBookAPI() {
$this
->assertCoderFail(' book_admin_orphan();');
$this
->assertCoderFail(' book_content();');
$this
->assertCoderFail(' book_form();');
$this
->assertCoderFail(' book_insert();');
$this
->assertCoderFail(' book_location();');
$this
->assertCoderFail(' book_location_down();');
$this
->assertCoderFail(' book_node_visitor_html_post();');
$this
->assertCoderFail(' book_node_visitor_html_pre();');
$this
->assertCoderFail(' book_recurse();');
$this
->assertCoderFail(' book_toc_recurse();');
$this
->assertCoderFail(' book_tree();');
$this
->assertCoderFail(' book_tree_recurse();');
// Book API tests - function arguments changed.
$this
->assertCoderFail(' book_admin_edit($nid);');
$this
->assertCoderPass(' book_admin_edit($form_state, $node);');
$this
->assertCoderFail(' book_toc();');
$this
->assertCoderFail(' book_toc($exclude);');
$this
->assertCoderPass(' book_toc($bid, array(), $depth);');
$this
->assertCoderFail(' book_export_html($nid, $depth);');
$this
->assertCoderPass(' book_export_html($nid);');
$this
->assertCoderFail(' book_export();');
$this
->assertCoderFail(' book_export($type);');
$this
->assertCoderPass(' book_export($type, $nid);');
$this
->assertCoderFail(' book_outline($nid);');
$this
->assertCoderFail(' book_outline($node->nid);');
$this
->assertCoderPass(' book_outline($node);');
$this
->assertCoderFail(' book_prev($node);');
$this
->assertCoderPass(' book_prev($book_link);');
$this
->assertCoderFail(' book_next($node);');
$this
->assertCoderPass(' book_next($book_link);');
}