File tree Expand file tree Collapse file tree
plugins/faustwp/tests/integration Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ===. ' );
You can’t perform that action at this time.
0 commit comments