Skip to content

Commit 435fe57

Browse files
josephfuscoCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5f25cae commit 435fe57

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/faustwp/tests/integration/RestCallbacksTests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ public function test_secret_comparisons_use_constant_time_hash_equals(): void {
147147
$rest_callbacks = file_get_contents( dirname( __DIR__, 2 ) . '/includes/rest/callbacks.php' );
148148
$graphql_callbacks = file_get_contents( dirname( __DIR__, 2 ) . '/includes/graphql/callbacks.php' );
149149

150+
$this->assertNotFalse( $rest_callbacks, 'Failed to read includes/rest/callbacks.php for regression guard.' );
151+
$this->assertNotFalse( $graphql_callbacks, 'Failed to read includes/graphql/callbacks.php for regression guard.' );
152+
150153
// The three bad patterns this PR replaces:
151154
$this->assertStringNotContainsString( '=== $header_key', $rest_callbacks,
152155
'rest_authorize_permission_callback must use hash_equals(), not ===.' );

0 commit comments

Comments
 (0)