This repository has been archived by the owner. It is now read-only.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Mar 4, 2014
Closed
Closed
Closed
Began adding unit tests for the /posts/ endpoints, still a long way to go to get close to full coverage. |
Merged
} | ||
|
||
// Check post dates. | ||
$timezone = $this->fake_server->get_timezone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This returns null, since everything is stubbed out, but the same happens internally too, so...
Coverage is currently at 47.96%. |
This helps coverage understand the code better, and fits with coding standards.
We're now at 54% coverage for tests (my previous figure was wrong; it was closer to 10%); more importantly, Merging for now so that we can avoid this going stale, and so that it helps us in the mean time. More tests to come! |
|
kellbot
pushed a commit
to kellbot/WP-API
that referenced
this issue
Aug 1, 2014
Test post endpoints
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The
WP_JSON_Posts
endpoints should be tested to ensure they return a reliable representation of posts.