1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-06 12:02:45 +03:00

Sorting: Split out test class, added book autosort tests

Just for test view, actual functionality of autosort on change still
needs to be tested.
This commit is contained in:
Dan Brown
2025-02-10 13:33:10 +00:00
parent 69683d50ec
commit a65701294e
3 changed files with 287 additions and 229 deletions

View File

@@ -42,7 +42,7 @@ class BookSorter
}, $set->getOperations());
$chapters = $book->chapters()
->with('pages:id,name,priority,created_at,updated_at')
->with('pages:id,name,priority,created_at,updated_at,chapter_id')
->get(['id', 'name', 'priority', 'created_at', 'updated_at']);
/** @var (Chapter|Book)[] $topItems */