function NodeRSSContentTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/node/node.test, line 952

Class

NodeRSSContentTestCase
Ensures that data added to nodes by other modules appears in RSS feeds.

Code

function setUp() {
    // Enable dummy module that implements hook_node_view.
    parent::setUp('node_test');
    // Use bypass node access permission here, because the test class uses
    // hook_grants_alter() to deny access to everyone on node_access
    // queries.
    $user = $this->drupalCreateUser(array(
        'bypass node access',
        'access content',
        'create article content',
    ));
    $this->drupalLogin($user);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.