Skip to content

Updates various tests. #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2017
Merged

Conversation

montymxb
Copy link
Contributor

@montymxb montymxb commented May 13, 2017

In reference to #312.

Updates a mocking test to utilize phpunit 4's approach to mocking objects. This looks to be forward compatible with later versions as well, meaning we can upgrade to a currently supported version of phpunit when we feel the need.

Updates a pair of test cases in ParseQueryTest with a small time delay so that updatedAt based queries will return as expected. Prior to this both test cases attempted would save all objects in one ParseObject::saveAll call. This could lead to the update times being identical potentially, and the objects could return in an flip-flop fashion in regards to order.

Also noticed that one of the aforementioned Query tests was checking for objects in the wrong order. This was possible given the ambiguous time sorting of objects, which had the same update times.

@acinader if you can verify these changes have the intended effect on your end I would appreciate it!

Updates a pair of test cases with a small time delay so that updatedAt related queries will return as expected
@montymxb montymxb requested a review from acinader May 13, 2017 00:18
@acinader acinader merged commit 04b41a5 into parse-community:master May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants