]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/EntityTest.php
Add footer element, styles, and associated settings
[bookstack] / tests / Entity / EntityTest.php
index 3d12ed7495943dcc75ef979d87d845a57c41ee47..97684ea4d66fc174e82c8c8b81b55a35488193d7 100644 (file)
@@ -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());
+    }
+
 }