public function BookTest::testSettingsForm in Drupal 8
Same name and namespace in other branches
- 9 core/modules/book/tests/src/Functional/BookTest.php \Drupal\Tests\book\Functional\BookTest::testSettingsForm()
- 10 core/modules/book/tests/src/Functional/BookTest.php \Drupal\Tests\book\Functional\BookTest::testSettingsForm()
Tests that the book settings form can be saved without error.
File
- core/
modules/ book/ tests/ src/ Functional/ BookTest.php, line 650
Class
- BookTest
- Create a book, add pages, and test book interface.
Namespace
Drupal\Tests\book\FunctionalCode
public function testSettingsForm() {
$this
->drupalLogin($this->adminUser);
$this
->drupalPostForm('admin/structure/book/settings', [], 'Save configuration');
}