function PublishContentWebCaseTest::assert_node_status in Publish Content 6
Same name and namespace in other branches
- 5.2 tests/publishcontent.test \PublishContentWebCaseTest::assert_node_status()
3 calls to PublishContentWebCaseTest::assert_node_status()
File
- tests/
publishcontent.test, line 47 - 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 assert_node_status($nid, $status, $msg = 'node status mismatches') {
$result = node_load($nid, NULL, TRUE);
$this
->assertEqual($result->status, $status, $msg);
}