diff -u b/core/modules/book/src/Tests/BookTest.php b/core/modules/book/src/Tests/BookTest.php --- b/core/modules/book/src/Tests/BookTest.php +++ b/core/modules/book/src/Tests/BookTest.php @@ -755,19 +755,18 @@ /** * Tests the book navigation block when book is unpublished. * - * There was a fatal error with "Show block only on book pages" block mode: - * @see https://www.drupal.org/node/2743183 + * There was a fatal error with "Show block only on book pages" block mode. */ public function testBookNavigationBlockOnUnpublishedBook() { // Create a new book. $this->createBook(); // Create administrator user. - $administratorUser = $this->drupalCreateUser(array('edit any book content', 'administer blocks', 'administer nodes', 'bypass node access')); + $administratorUser = $this->drupalCreateUser(['administer blocks', 'administer nodes', 'bypass node access']); $this->drupalLogin($administratorUser); // Enable the block with "Show block only on book pages" mode. - $this->drupalPlaceBlock('book_navigation', array('block_mode' => 'book pages')); + $this->drupalPlaceBlock('book_navigation', ['block_mode' => 'book pages']); // Unpublish book node. $edit = []; @@ -775,7 +774,7 @@ // Test node page. $this->drupalGet('node/' . $this->book->id()); - $this->assertText($this->book->label(), 'Unpublished book with "Show block only on book pages" book navigaton settings.'); + $this->assertText($this->book->label(), 'Unpublished book with "Show block only on book pages" book navigation settings.'); } }