function NodeCreationTestCase::setUp
Overrides DrupalWebTestCase::setUp
File
-
modules/
node/ node.test, line 609
Class
- NodeCreationTestCase
- Tests creating and saving a node.
Code
function setUp() {
// Enable dummy module that implements hook_node_insert for exceptions.
parent::setUp('node_test_exception');
$web_user = $this->drupalCreateUser(array(
'create page content',
'edit own page content',
));
$this->drupalLogin($web_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.