public function NodeFieldTestCase::setUp in Node Field 7.2
Run by simpletest. Create environment for test.
Overrides DrupalWebTestCase::setUp
File
- tests/
node_field.test, line 27 - Test creation and deletion of node field.
Class
- NodeFieldTestCase
- Test node fields.
Code
public function setUp() {
parent::setUp('node_field');
$permissions = [
'administer site configuration',
'administer modules',
'access content',
'create article content',
'delete own article content',
'edit own article content',
];
$user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($user);
}