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