diff --git a/core/modules/book/src/Tests/BookTest.php b/core/modules/book/src/Tests/BookTest.php index 532a082..a3401a7 100644 --- a/core/modules/book/src/Tests/BookTest.php +++ b/core/modules/book/src/Tests/BookTest.php @@ -463,8 +463,8 @@ function testBookDelete() { $this->drupalGet($this->book->urlInfo('delete-form')); $this->assertRaw(t('%title is part of a book outline, and has associated child pages. If you proceed with deletion, the child pages will be relocated automatically.', ['%title' => $this->book->label()])); // Delete parent, and visit a child page. - $this->drupalPostForm('node/' . $this->book->id() . '/delete', [], t('Delete')); - $this->drupalGet('node/' . $nodes[0]->id()); + $this->drupalPostForm($this->book->urlInfo('delete-form'), [], t('Delete')); + $this->drupalGet($nodes[0]->urlInfo()); $this->assertResponse(200); $this->assertText($nodes[0]->label()); }