diff --git a/tests/php/indexables/TestComment.php b/tests/php/indexables/TestComment.php index 8252c83385..b9f93a5a88 100644 --- a/tests/php/indexables/TestComment.php +++ b/tests/php/indexables/TestComment.php @@ -245,7 +245,7 @@ public function testBasicCommentQuery() { // First try without ES and make sure everything is right. $comments_query = new \WP_Comment_Query( [] ); - $this->assertTrue( $comments_query->elasticsearch_success ); + $this->assertObjectNotHasAttribute( 'elasticsearch_success', $comments_query ); $comments = $comments_query->get_comments();