diff --git a/tests/test-author-queries.php b/tests/test-author-queries.php index d6d58c7a..7d0453ba 100644 --- a/tests/test-author-queries.php +++ b/tests/test-author-queries.php @@ -60,8 +60,6 @@ public function test__author_name_arg__user_is_coauthor() { } public function test__author_arg__user_is_coauthor__author_arg() { - return; // TODO: re-enable; fails currently because WordPress generates query as `post_author IN (id)` which doesn't match our regex in the posts_where filter. - $author1_id = $this->factory->user->create( array( 'role' => 'author', 'user_login' => 'batman' ) ); $author1 = get_userdata( $author1_id ); $author2_id = $this->factory->user->create( array( 'role' => 'author', 'user_login' => 'superman' ) ); @@ -103,8 +101,6 @@ public function test__author_name_arg_plus_tax_query__user_is_post_author() { } public function tests__author_name_arg_plus_tax_query__is_coauthor() { - return; // TODO: re-enable; fails currently because our posts_join_filter doesn't add an exclusive JOIN on relationships + taxonomy to match the query mods we make. We'd need aliased JOINs on relationships + taxonomy on top of the JOIN that the tax query already adds. - $author1_id = $this->factory->user->create( array( 'role' => 'author', 'user_login' => 'batman' ) ); $author1 = get_userdata( $author1_id ); $author2_id = $this->factory->user->create( array( 'role' => 'author', 'user_login' => 'superman' ) );