Fix failing tests in EntryQueryBuilderTest
#275
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fixes two failing tests in the
EntryQueryBuilderTest.entry_is_found_within_all_created_entries_using_entry_facade_with_find_methodwas failing due to the timestamps in the searched & retrieved entries not matching. Freezing time using Laravel's$this->freezeTime()helper fixed this.entry_is_found_within_all_created_entries_and_select_query_columns_are_set_using_entry_facade_with_find_method_with_columns_paramwas failing due to the retrieved entry only returningfooandcollection, where the comparison was expecting the entire entry array.These fixes were "cherry picked" out of changes in #273.