Skip to content

Commit 3fc5736

Browse files
committed
Update NonceVerificationUnitTest.1.inc now that there are dedicated tests for the is_in_function_call() method
- Remove the @Covers is_in_function_call() tag - Remove code comment. The tests are still relevant for the sniff, but are not anymore specifically to test is_in_function_call().
1 parent 4441f6e commit 3fc5736

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

WordPress/Tests/Security/NonceVerificationUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function function_containing_nested_closure() {
291291
};
292292
}
293293

294-
// Tests specifically for the ContextHelper::is_in_function_call().
294+
295295
function disallow_custom_unslash_before_noncecheck_via_method() {
296296
$var = MyClass::stripslashes_from_strings_only( $_POST['foo'] ); // Bad.
297297
wp_verify_nonce( $var );

WordPress/Tests/Security/NonceVerificationUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* @since 0.13.0 Class name changed: this class is now namespaced.
1919
* @since 1.0.0 This sniff has been moved from the `CSRF` category to the `Security` category.
2020
*
21-
* @covers \WordPressCS\WordPress\Helpers\ContextHelper::is_in_function_call
2221
* @covers \WordPressCS\WordPress\Helpers\ContextHelper::is_in_type_test
2322
* @covers \WordPressCS\WordPress\Helpers\ContextHelper::is_in_isset_or_empty
2423
* @covers \WordPressCS\WordPress\Helpers\ContextHelper::is_in_array_comparison

0 commit comments

Comments
 (0)