Skip to content

Commit 766b3d5

Browse files
committed
Use more specific assertion
1 parent 5f258e3 commit 766b3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/phpunit/tests/term/query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public function test_object_ids_null_should_return_all_terms() {
477477
public function test_object_ids_zero_should_be_treated_as_numeric() {
478478
register_taxonomy( 'wptests_tax_1', 'post' );
479479

480-
$term = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax_1' ) );
480+
self::factory()->term->create( array( 'taxonomy' => 'wptests_tax_1' ) );
481481

482482
$query = new WP_Term_Query(
483483
array(
@@ -488,7 +488,7 @@ public function test_object_ids_zero_should_be_treated_as_numeric() {
488488
)
489489
);
490490

491-
$this->assertIsArray( $query->terms, 'When object_ids is 0, it should be treated as a numeric value and return an array.' );
491+
$this->assertSame( array(), $query->terms, 'When object_ids is 0, it should be treated as a numeric value and return an array.' );
492492
}
493493

494494
/**

0 commit comments

Comments
 (0)