function PublishContentWebCaseTest::assert_access_node in Publish Content 5.2
Same name and namespace in other branches
- 6 tests/publishcontent.test \PublishContentWebCaseTest::assert_access_node()
4 calls to PublishContentWebCaseTest::assert_access_node()
- PublishContentWebCaseTest::assert_current_user_cannot_publish_node in tests/
publishcontent.test - PublishContentWebCaseTest::assert_current_user_can_publish_node in tests/
publishcontent.test - PublishContentWebCaseTest::assert_current_user_can_unpublish_node in tests/
publishcontent.test - PublishContentWebCaseTest::testNoPermissionByOwner in tests/
publishcontent.test - Test the access for the owner of a node without the permission to publish or unpublish.
File
- tests/
publishcontent.test, line 37 - 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_access_node($node, $msg = NULL) {
$this
->drupalGet(url('node/' . $node->nid, NULL, NULL, TRUE));
$this
->assertResponse(200);
$this
->assertTitle($node->title . ' | ' . variable_get('site_name', 'Drupal'), $msg);
}