You are here

public function ContentLockTimeoutTest::testContentLockNode in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 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 205

Class

ContentLockTimeoutTest
Test content_lock_timeout sub module.

Namespace

Drupal\Tests\content_lock_timeout\Functional

Code

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);
}