Skip to content

Commit b4b9274

Browse files
aduthwestonruter
andauthored
Explicitly assert count on returned data size
Co-authored-by: Weston Ruter <[email protected]>
1 parent 6d4f4e6 commit b4b9274

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/tests/rest-api/rest-themes-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function test_get_items_active() {
239239
'theme_supports',
240240
);
241241
$this->assertIsArray( $data );
242-
$this->assertNotEmpty( $data );
242+
$this->assertCount( 1, $data );
243243
$this->assertSameSets( $fields, array_keys( $data[0] ) );
244244

245245
$this->assertEquals( array( 'rest-api' ), wp_list_pluck( $data, 'stylesheet' ) );

0 commit comments

Comments
 (0)