function PublishContentWebCaseTest::publishcontent_do_operation in Publish Content 6
Same name and namespace in other branches
- 5.2 tests/publishcontent.test \PublishContentWebCaseTest::publishcontent_do_operation()
2 calls to PublishContentWebCaseTest::publishcontent_do_operation()
File
- tests/
publishcontent.test, line 29 - Unit tests for Publish Content module. prerequesite: make sure that 'authenticated user' does not have any access like 'publish [content type] content' or 'unpublish [content type] content'
Class
- PublishContentWebCaseTest
- @file Unit tests for Publish Content module. prerequesite: make sure that 'authenticated user' does not have any access like 'publish [content type] content' or 'unpublish [content type] content'
Code
function publishcontent_do_operation($nid, $op, $expected_status, $msg = NULL) {
$this
->drupalGet("node/{$nid}/{$op}");
$node = node_load($nid, NULL, TRUE);
$this
->assertEqual($node->status, $expected_status, $msg);
}