function NodeSaveTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/node/node.test, line 1331

Class

NodeSaveTestCase
Tests node save related functionality, including import-save.

Code

function setUp() {
    parent::setUp('node_test');
    // Create a user that is allowed to post; we'll use this to test the submission.
    $web_user = $this->drupalCreateUser(array(
        'create article content',
    ));
    $this->drupalLogin($web_user);
    $this->web_user = $web_user;
}

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