Skip to content
This repository has been archived by the owner. It is now read-only.

Test post endpoints #99

Merged
merged 38 commits into from Jun 2, 2014
Merged

Test post endpoints #99

merged 38 commits into from Jun 2, 2014

Conversation

rachelbaker
Copy link
Member

@rachelbaker rachelbaker commented May 26, 2014

The WP_JSON_Posts endpoints should be tested to ensure they return a reliable representation of posts.

@rmccue rmccue added this to the 1.0 milestone Mar 4, 2014
This was referenced Mar 4, 2014
@rmccue rmccue modified the milestones: 1.1, 1.0 Apr 9, 2014
@rachelbaker rachelbaker self-assigned this May 26, 2014
@rachelbaker
Copy link
Member

rachelbaker commented May 26, 2014

Began adding unit tests for the /posts/ endpoints, still a long way to go to get close to full coverage.

@rmccue rmccue mentioned this pull request May 27, 2014
}

// Check post dates.
$timezone = $this->fake_server->get_timezone();
Copy link
Member

@rmccue rmccue May 27, 2014

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...

@rmccue
Copy link
Member Author

rmccue commented May 27, 2014

Coverage is currently at 47.96%.

@rmccue
Copy link
Member Author

rmccue commented Jun 2, 2014

We're now at 54% coverage for tests (my previous figure was wrong; it was closer to 10%); more importantly, insert_post is at 81%, with that figure to increase dramatically once #218 and #286 are fixed.

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!

rmccue added a commit that referenced this issue Jun 2, 2014
@rmccue rmccue merged commit bc40226 into master Jun 2, 2014
1 check passed
@rmccue rmccue deleted the test-post-endpoints branch Jun 2, 2014
@rachelbaker
Copy link
Member

rachelbaker commented Jun 2, 2014

👏

kellbot pushed a commit to kellbot/WP-API that referenced this issue Aug 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants