public function BookTest::testAdminBookListing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/src/Tests/BookTest.php \Drupal\book\Tests\BookTest::testAdminBookListing()
Tests the administrative listing of all books.
File
- core/
modules/ book/ src/ Tests/ BookTest.php, line 621 - Contains \Drupal\book\Tests\BookTest.
Class
- BookTest
- Create a book, add pages, and test book interface.
Namespace
Drupal\book\TestsCode
public function testAdminBookListing() {
// Create a new book.
$this
->createBook();
// Load the book page and assert the created book title is displayed.
$this
->drupalLogin($this->adminUser);
$this
->drupalGet('admin/structure/book');
$this
->assertText($this->book
->label(), 'The book title is displayed on the administrative book listing page.');
}