public function ContentLockTimeoutTest::testContentLockNode in Content locking (anti-concurrent editing) 8.2
Same name and namespace in other branches
- 8 modules/content_lock_timeout/tests/src/Functional/ContentLockTimeoutTest.php \Drupal\Tests\content_lock_timeout\Functional\ContentLockTimeoutTest::testContentLockNode()
Test content lock timeout with nodes.
File
- modules/
content_lock_timeout/ tests/ src/ Functional/ ContentLockTimeoutTest.php, line 210
Class
- ContentLockTimeoutTest
- Test content_lock_timeout sub module.
Namespace
Drupal\Tests\content_lock_timeout\FunctionalCode
public function testContentLockNode() {
// We protect the bundle created.
$this
->drupalLogin($this->adminUser);
$edit = [
'node[bundles][article]' => 1,
];
$this
->drupalPostForm('admin/config/content/content_lock', $edit, t('Save configuration'));
$this
->doTestForEntity($this->article1);
}