mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-28 19:06:39 +08:00
Updated page delete to return to chapter if within one
- Added test to cover Closes #1715
This commit is contained in:
@ -315,4 +315,14 @@ class EntityTest extends BrowserKitTest
|
||||
->seePageIs($book->getUrl());
|
||||
}
|
||||
|
||||
public function test_page_within_chapter_deletion_returns_to_chapter()
|
||||
{
|
||||
$chapter = Chapter::query()->first();
|
||||
$page = $chapter->pages()->first();
|
||||
|
||||
$this->asEditor()->visit($page->getUrl('/delete'))
|
||||
->submitForm('Confirm')
|
||||
->seePageIs($chapter->getUrl());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user