]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SortTest.php
Updated activities table format
[bookstack] / tests / Entity / SortTest.php
index 28c3adf312682fa84783a78634eb946681c98e70..d510a20ca1f1dd077b475e228ec02b7ad0fb5d4e 100644 (file)
@@ -79,7 +79,7 @@ class SortTest extends TestCase
         $movePageResp = $this->actingAs($this->getEditor())->put($page->getUrl('/move'), [
             'entity_selection' => 'book:' . $newBook->id
         ]);
-        $page = Page::find($page->id);
+        $page->refresh();
 
         $movePageResp->assertRedirect($page->getUrl());
         $this->assertTrue($page->book->id == $newBook->id, 'Page parent is now the new book');