function ContentLockTestCase::setUp in Content locking (anti-concurrent editing) 6
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
content_lock.test, line 24 - Backport of Drupal 7 block.test with modifications, see BACKPORT.txt.
Class
- ContentLockTestCase
- @file Backport of Drupal 7 block.test with modifications, see BACKPORT.txt.
Code
function setUp() {
parent::setUp('content_lock');
// Create and login user
$author = $this
->drupalCreateUser(array(
'check out documents',
'edit any page content',
));
$this
->drupalLogin($author);
}