Skip to content

Commit 5afbb03

Browse files
Copilotpattonwebz
andauthored
test: refine stats value assertion style in endpoint test
Agent-Logs-Url: https://github.com/equalizedigital/accessibility-checker/sessions/7d64c420-7f01-4b61-bcd8-2c36d5c5f786 Co-authored-by: pattonwebz <3902039+pattonwebz@users.noreply.github.com>
1 parent 8f87dab commit 5afbb03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/includes/classes/RestApiEndpointsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public function test_scans_stats_by_post_types_permissions_and_payload() {
322322
if ( ! empty( $data['stats'] ) ) {
323323
foreach ( $data['stats'] as $post_type => $stat ) {
324324
$this->assertIsString( $post_type );
325-
$this->assertTrue( false === $stat || is_array( $stat ) );
325+
$this->assertTrue( $stat === false || is_array( $stat ) );
326326
}
327327
}
328328

0 commit comments

Comments
 (0)