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

Unit Tests: Test for WP_Query should confirm before before unlisting the post that the post is available in results #57

Open
Nikschavan opened this issue Jun 11, 2021 · 0 comments

Comments

@Nikschavan
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

public function test_unlisted_post_not_in_wp_query() {
wp_set_current_user( $this->editor_user_id );
// Create a post.
$unlisted_post = self::factory()->post->create();

Here we should assert that the post is available if WP_Query is run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants