Skip to content

Commit 7623f27

Browse files
committed
Use assertCount instead of assertEmpty
1 parent 1ae45d3 commit 7623f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/admin/exportWp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static function () {
308308

309309
$xml_obj = $this->get_the_export( array() );
310310
$comment_tags = $xml_obj->xpath( '//wp:comment' );
311-
$this->assertEmpty( $comment_tags, 'No <wp:comment> tags should be present when comments are filtered out.' );
311+
$this->assertCount( 0, $comment_tags, 'No <wp:comment> tags should be present when comments are filtered out.' );
312312
}
313313

314314
/**

0 commit comments

Comments
 (0)