function ContentLockTestCase::testLocking in Content locking (anti-concurrent editing) 6
File
- tests/
content_lock.test, line 42 - 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 testLocking() {
// Add a new box by filling out the input form on the admin/build/block/add page.
$n = $this
->DrupalCreateNode(array(
'type' => 'page',
));
$this
->drupalGet('node/' . $n->nid . '/edit');
$this
->assertTrue($this
->_checkLock($n->nid, true), 'Checking edit lock when user is editing');
}