BookStack/tests/Entity
Dan Brown f99af807d0
Reviewed and refactored additional editor draft save warnings
- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.
2021-10-04 20:26:55 +01:00
..
BookShelfTest.php Moved/Updated old Activity tracking tests, started on entity tests 2021-09-13 23:26:39 +01:00
BookTest.php Finished moving EntityTests out to new TestCase files 2021-09-17 21:29:16 +01:00
ChapterTest.php Finished moving EntityTests out to new TestCase files 2021-09-17 21:29:16 +01:00
CommentSettingTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
CommentTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
EntityAccessTest.php Finished moving EntityTests out to new TestCase files 2021-09-17 21:29:16 +01:00
EntitySearchTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
ExportTest.php Added untrusted server fetching control 2021-08-31 20:22:42 +01:00
PageContentTest.php Applied latest styleci changes 2021-09-06 22:19:06 +01:00
PageDraftTest.php Reviewed and refactored additional editor draft save warnings 2021-10-04 20:26:55 +01:00
PageEditorTest.php Applied styleci style changes 2021-09-18 21:21:44 +01:00
PageRevisionTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
PageTemplateTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
PageTest.php Applied styleci style changes 2021-09-18 21:21:44 +01:00
SearchOptionsTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
SortTest.php Moved more tests out of EntityTest 2021-09-15 22:18:37 +01:00
TagTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00