Skip to content
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

Network Site Connections test suite #2

Closed
3 tasks
tlovett1 opened this issue Sep 30, 2016 · 3 comments
Closed
3 tasks

Network Site Connections test suite #2

tlovett1 opened this issue Sep 30, 2016 · 3 comments
Assignees
Labels
needs:tests This requires tests.
Milestone

Comments

@tlovett1
Copy link
Member

tlovett1 commented Sep 30, 2016

There should be separate tests files for both NetworkSiteConnections.php and InternalConnections/NetworkSiteConnection.php.

For NetworkSiteConnection.php, we will need to test:

  • Push
  • Pull
  • Remote get
@tlovett1 tlovett1 added the needs:tests This requires tests. label Sep 30, 2016
@tlovett1 tlovett1 added this to the 1.0 milestone Sep 30, 2016
zanematthew pushed a commit that referenced this issue Oct 21, 2016
Adding unit test for the network site connection push method, #2.
zanematthew pushed a commit that referenced this issue Oct 21, 2016
Added unit test for push method, #2
zanematthew pushed a commit that referenced this issue Oct 21, 2016
zanematthew pushed a commit that referenced this issue Oct 21, 2016
@zanematthew
Copy link

zanematthew commented Oct 26, 2016

@tlovett1 there isn't a method relating to "Connection checking" in the NetworkSiteConnection, class found here, did the code change?

Also from what I gather the extending class is no longer used?

@tlovett1
Copy link
Member Author

The class is definitely used. However, no connection checking is necessary since it's internal.

@zanematthew
Copy link

zanematthew commented Nov 11, 2016

I've re-visited the push() method, and did notice that if wp_insert_post fails that the returned item is a WP error. I've added another for this.

I know based on prior comments we're not testing HTML, and some methods have a higher priority than others. Specifically which other methods should we test?

This test was actually done on a different branch 707dbf8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:tests This requires tests.
Projects
None yet
Development

No branches or pull requests

3 participants